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

bwhitmire01
Participant

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
Reply
502 Views
2 Replies
Replies (2)

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

bwhitmire01
Participant
Participant

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

0 Likes