Go to: Synopsis. Return value. Related. Flags. Python examples.
dgdirty([allPlugs=boolean], [clean=boolean], [verbose=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
dgdirty is undoable, NOT queryable, and NOT editable.
The dgdirty command is used to force a dependency graph dirty message on a node or plug. Used for debugging to find evaluation problems. If no nodes are specified then the current selection list is used.None
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
verbose(v)
|
boolean
|
|
||
|
||||
clean(c)
|
boolean
|
|
||
|
||||
allPlugs(a)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds # Set everything in the entire scene dirty # cmds.dgdirty(a=True); # Set all connected plugs dirty on "myNode" # cmds.dgdirty( 'myNode' ) # Result: 5 # 5 plugs were set dirty # Set all connected plugs dirty on "locator1" cmds.dgdirty( 'locator1' ) # Result: 0 # 0 plugs were connected so no dirty message was sent # Set myNode.tx dirty cmds.select( 'myNode.tx' ) cmds.dgdirty() # Result: 1