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.
Maya will look for
userSetup.pyon yourPYTHONPATH, 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.