pymel.core.animation.backgroundEvaluationManager

backgroundEvaluationManager(*args, **kwargs)

Allows user to pause and restart background evaluations. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
mode / m unicode ../../../_images/create.gif ../../../_images/query.gif
  Changes the current evaluation mode in the evaluation manager. Supported values are serial, serialUncachedand parallel.
pause / p bool ../../../_images/query.gif
  Pause background evaluation. Will block till background evaluation is fully stopped. Can be queried to get the current state.
resume / r bool  
  Resume background evaluation. Will start suspended evaluations unless someones else requested it. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.backgroundEvaluationManager

Example:

::

import pymel.core as pm

import maya.cmds as cmds

# Set background evaluation manager to serial mode pm.backgroundEvaluationManager( mode=”serial” ) # Result: True #

# Return the current background evaluation manager mode pm.backgroundEvaluationManager( query=True, m=True ) # Result: [u’serial’] #

# Pause background evaluation pm.backgroundEvaluationManager( pause=True ) # Result: True #

# Return the current background evaluation manager mode pm.backgroundEvaluationManager( query=True, p=True ) # Result: True #

# Resume background evaluation (unless was paused by someone else) pm.backgroundEvaluationManager( resume=True ) # Result: True #