Share

MDGModifier

The Maya SDK also includes classes and methods for manipulating and modifying dependency graphs.

The MDGModifier class is used to modify a dependency graph. It lets you create nodes in the graph, connect nodes to each other, add metadata to the graph, set and modify attributes, and delete nodes in the graph.

Each call in MDGModifier will be queued until the doIt() function is called. Once doIt() is called, the queued tasks will be executed.

However, in the case of deleting nodes from the graph, you must call doIt() to clear the queue before calling deleteNode(). After calling deleteNode(), call doIt() once again to re-clear the queue before making any other calls.

Was this information helpful?