Maya stdout During Startup?

Maya stdout During Startup?

Anonymous
Not applicable
1,121 Views
3 Replies
Message 1 of 4

Maya stdout During Startup?

Anonymous
Not applicable

I'm using a userSetup.py script to do some setup in Maya during launch. However, some things are not happening as expected, and I can't seem to find the output of Maya's stdout during startup to debug.

For example, if I put the line

print "Testing stuff..."

into userSetup.py, I cannot find where it gets printed. It does not show up in the Script Editor after Maya launches, it does not get written to the shell if I launch Maya via cmd prompt > maya.exe, and it does not get written out to the output file if I set MAYA_CMD_FILE_OUTPUT in my Maya.env

Where can I find the stdout from Maya's startup process?

0 Likes
Accepted solutions (1)
1,122 Views
3 Replies
Replies (3)
Message 2 of 4

haggi_master
Advocate
Advocate

In my experience, the startup procedure has changed with Maya2016 I think. The userSetup.py is now executed very much earlier than before. e.g. we used it to load MtoA automatically at startup and it crashed maya because it called some UI methods which did not yet exist. So maybe it is the same here and not all input/output procedures are completely initialized at that point.

0 Likes
Message 3 of 4

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I did a test. It should be in the Maya output window which is similar to cout.

 

Yours,

Li

0 Likes
Message 4 of 4

Anonymous
Not applicable

Yes recently I simplified my code quite a bit and the printout was showing up in the Maya output window as expected. I'm not sure what was messing it up before but it is behaving as expected now.

0 Likes