Search - User list
Full Version: Setting Asynchronous mode programmatically before running maya
Root » Houdini Engine for Maya » Setting Asynchronous mode programmatically before running maya
grayOlorin
Is there a way to query or turn the Asynchronous flag off programmatically before starting a maya process? I.e via setting an environment variable in python or C#?

I know in Maya, when we turn that optionVar off, it requires a restart, which made me think this would be possible?

Thank you!
awong
One way is to use the userSetup.mel. For example, you can add:
if(size(`getenv FOO`))
{
optionVar -iv houdiniEngineAsynchronousMode ((int)`getenv FOO`);
}

The same can be done using Python with userSetup.py.
grayOlorin
Thank you Andrew! That works!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB