When the cacheInput attribute has a positive value the midModifier node caches the output mesh improving performance in computations of downstream nodes. When the counter has a zero value the midModifier releases the cached data.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
cacheValue (chv) | bool | ||
Flag to indicate whether the node’s cache counter should be incremented or decremented. True increments the counter, false decrements the counter. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
nodeName (nm) | unicode | ||
|
Derived from mel command maya.cmds.polyCacheMonitor
Example:
import pymel.core as pm
# increment cache counter on polyExtrudeFace1 node
pm.polyCacheMonitor( nodeName='polyExtrudeFace1' )
# update/edit manipulate nodes which are present downstream
# with respect to polyExtrudeFace1
# decrement cache counter on polyExtrudeFace1 node
# so that the cache is set free
pm.polyCacheMonitor( nodeName='polyExtrudeFace1', cacheValue=False )