Maya Standalone and a custom usersetup

37 views
Skip to first unread message

sh...@riotgames.com

unread,
Nov 13, 2019, 3:15:08 PM11/13/19
to Python Programming for Autodesk Maya
The project I am on has a very structured userSetup.py that it initiates when Maya is launched. This is causing errors when I try to instantiate Maya Standalone.

My question is, is there a way that I can associate a custom userSetup to a Maya Standalone session? This way I can have a custom userSetup for just Standalone instances. Or ... Is there a way I can detect in the userSetup that the Maya session being launched is Maya Standalone and bypass the areas of the userSetup which are causing me trouble with conditionals?

Thanks,

Seth

Marcus Ottosson

unread,
Nov 14, 2019, 1:43:53 AM11/14/19
to python_in...@googlegroups.com

Maya will look for userSetup.py on your PYTHONPATH, regardless of whether you’re standalone or in the GUI. So you could either modify that variable prior to launching either of them, or try some conditionals. Here’s what I’ve typically done with regards to conditionals, there are probably others ways as well.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0e872f1b-202d-4f11-8e9b-42eedeff90b5%40googlegroups.com.

Seth Hall

unread,
Nov 14, 2019, 4:55:16 PM11/14/19
to Python Programming for Autodesk Maya
Ah yes! Thank you. Querying the batch mode through the about command was perfect.


On Wednesday, November 13, 2019 at 10:43:53 PM UTC-8, Marcus Ottosson wrote:

Maya will look for userSetup.py on your PYTHONPATH, regardless of whether you’re standalone or in the GUI. So you could either modify that variable prior to launching either of them, or try some conditionals. Here’s what I’ve typically done with regards to conditionals, there are probably others ways as well.


On Wed, 13 Nov 2019 at 20:15, <sh...@riotgames.com> wrote:
The project I am on has a very structured userSetup.py that it initiates when Maya is launched. This is causing errors when I try to instantiate Maya Standalone.

My question is, is there a way that I can associate a custom userSetup to a Maya Standalone session? This way I can have a custom userSetup for just Standalone instances. Or ... Is there a way I can detect in the userSetup that the Maya session being launched is Maya Standalone and bypass the areas of the userSetup which are causing me trouble with conditionals?

Thanks,

Seth

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages