Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.

Synopsis

dgInfo([allNodes=boolean], [connections=boolean], [dirty=boolean], [nodes=boolean], [nonDeletable=boolean], [outputFile=string], [propagation=boolean], [short=boolean], [subgraph=boolean], [type=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

dgInfo is NOT undoable, NOT queryable, and NOT editable.

This command prints information about the DG in a text-oriented manner. The scope of the information printed is the entire graph if the -all flag is used, the nodes/plugs on the command line if they were specified, and the selection list, in that order.

Return value

None

Keywords

debug, dependency, graph, node, output, connection

Related

dgdirty, dgeval

Flags

allNodes, connections, dirty, nodes, nonDeletable, outputFile, propagation, short, subgraph, type
Long name (short name) Argument types Properties
connections(c) boolean create
Print the connection information
nodes(n) boolean create
Print the specified nodes (or the entire graph if -all is used)
subgraph(sub) boolean create
Print the subgraph affected by the node or plugs (or all nodes in the graph grouped in subgraphs if -all is used)
allNodes(all) boolean create
Use the entire graph as the context
short(s) boolean create
Print using short format instead of long
dirty(d) boolean create
Only print dirty/clean nodes/plugs/connections. Default is both
propagation(p) boolean create
Only print propagating/not propagating nodes/plugs/connections. Default is both.
nonDeletable(nd) boolean create
Include non-deletable nodes as well (normally not of interest)
type(nt) string create
Filter output to only show nodes of type NODETYPE
outputFile(of) string create
Send the output to the file FILE instead of STDERR

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# create a node
cmds.createNode('transform',name='NODE')
cmds.setKeyframe('NODE.translate')
# Print all things connected to node NODE
cmds.dgInfo( 'NODE', c=True )
# Print all connections currently in the graph
cmds.dgInfo( c=True, all=True )
# Print all connections to attribute tx on node NODE
cmds.dgInfo('NODE.tx',c=True)
# Print all dirty connections in the entire graph
cmds.dgInfo( c=True, all=True, d=True )