Even though dependency graph values are computed or dirty they may still occupy space temporarily within the nodes. This command goes in to all of the data that can be regenerated if required and removes it from the caches (datablocks), thus clearing up space in memory.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
allNodes (all) | bool | ||
|
|||
computed (c) | bool | ||
|
|||
dirty (d) | bool | ||
|
Derived from mel command maya.cmds.clearCache
Example:
import pymel.core as pm
# Clear one node's datablock cache
pm.clearCache( 'node' )
# Clear caches in all dependency graph nodes
pm.clearCache( all=True )
# Result: 0 #