Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maya stdout During Startup?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
814 Views, 3 Replies

Maya stdout During Startup?

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?

3 REPLIES 3
Message 2 of 4
haggi_master
in reply to: Anonymous

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.

Message 3 of 4
cheng_xi_li
in reply to: Anonymous

Hi,

 

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

 

Yours,

Li

Message 4 of 4
Anonymous
in reply to: cheng_xi_li

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report