Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Script needed for switching Anim Evaluation Mode to 'Parallel' and checking on GPU

Script needed for switching Anim Evaluation Mode to 'Parallel' and checking on GPU

bwhitmire01
Participant Participant
794 Views
2 Replies
Message 1 of 3

Script needed for switching Anim Evaluation Mode to 'Parallel' and checking on GPU

bwhitmire01
Participant
Participant

  Hi! I'm an animator at a studio that is running into issues with their tools that is resetting the Evaluation mode every time they are used. Until the bug is addressed, it would be amazing if there was a script we could get that would turn on Parallel WITH GPU option checked on. Thanks so much for your time!

 

In a perfect world it would be this script (below) but would also include 'checking on the GPU function' as well!

 

--------------

import maya.cmds as cmds

 

cmds.evaluationManager(mode="parallel")

 

----------

 

- Brian 

0 Likes
795 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor

Hi!

 

all you need to do is overwrite the gpuOverride variable using optionVar after the evaluation mode is changed.

import maya.cmds as cmds

 
cmds.evaluationManager(mode="parallel")
cmds.optionVar(iv = ["gpuOverride",1])

 

I hope this helps!

0 Likes
Message 3 of 3

bwhitmire01
Participant
Participant

Thank you so much! Looks like this is doing the trick @Kahylan! Much appreciated!!

0 Likes