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. > > - > > https://github.com/abstractfactory/maya-capture/blob/master/capture.py#L807 > > > On Wed, 13 Nov 2019 at 20:15, <[email protected] <javascript:>> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/0e872f1b-202d-4f11-8e9b-42eedeff90b5%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/0e872f1b-202d-4f11-8e9b-42eedeff90b5%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/74d98d91-075c-40ae-9c4e-9f1cf585a0e3%40googlegroups.com.
