As you work with complex graphs, you are likely to run into problems that require diagnosis and debugging. There are some basic tools that can help with this task.
Nodes with problems are highlighted in different colors. If the highlighted node is a compound, enter it to see which of its internal nodes have problems.
Hover the pointer over a node to see the full message in the Info Bar.
Watchpoints let you see information about the values flowing along connections.
To add a watchpoint, right-click on a connection and choose Set Watchpoint. You can hide or display the data by clicking the eye icon.
You can detach a watchpoint from its connection wire by dragging its eye icon or the table header anywhere in the graph view. The table is joined to the wire to show which data is dispayed.
To return the watchpoint to the wire, double-click the eye icon. You can also remove the watchpoint itself by Alt+Shift+dragging across the dotted line. Alternatively, right-click the eye icon and choose an option.
After adding a watchpoint, it is empty until the graph gets executed again. You can force a graph to be executed by changing an input, or advancing a frame in the case of a simulation.
Watchpoints update only when data flows through the connection. Watchpoints are not updated if they are on connections that do not lead to a graph output, or if they are not evaluated because of an if
node.
The information shown by a watchpoint depends on the type of data:
Watchpoints do not update when cached playback is in use in Maya.
When the information that watchpoints provide for an object is not enough, you can output the object's information to a text file.
dump_object
node to the graph.filename
.sample_size
to the maximum number of items to include from arrays. This prevents huge files from large objects.object
input.out_object
output as an output of the graph. Typically, you can simply replace the original connection from the upstream node.At least one output of the dump_object
must lead to a graph output, or else the node does not get executed.