Setting Asynchronous mode programmatically before running maya

   3332   2   1
User Avatar
Member
1799 posts
Joined: Oct. 2010
Online
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!
-G
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
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.
Andrew / アンドリュー
User Avatar
Member
1799 posts
Joined: Oct. 2010
Online
Thank you Andrew! That works!
-G
  • Quick Links