Dependency Node iterator.
Use the dependency node iterator to traverse all the nodes in Maya's
Dependency Graph.
With filtering enabled, the iterator checks to see if the node is
compatible with the type specified by the filter. See MFn.Type for a
list of all valid types.
Since MObjects may be compatible with more than one type (nodes are
organised in a hierarchy) the MObject.hasFn() method can be used to
further check for compatible types.
Any compatible Function Set can be attached to the retrieved object to
query or or edit it. Often you will want to use the dependency node
function set (MFnDependencyNode), which is compatible with all
dependency nodes, to perform queries on each node as the iterator
traverses the Dependency Graph.
Inheritance diagram for OpenMaya.MItDependencyNodes:
x.__init__(...) initializes x; see help(type(x)) for signature
Member Function Documentation
OpenMaya.MItDependencyNodes.isDone
(
)
isDone() -> Bool
Indicates end of the iteration.
OpenMaya.MItDependencyNodes.next
(
)
next() -> self
Moves to the next node matching the filter. If the filter
is set to kInvalid, this method advances to the next
DG node without doing any filtering.
OpenMaya.MItDependencyNodes.reset
(
)
reset() -> self
reset(filterType = MFn.kInvalid) -> self
reset(dagInfoObject) -> self
Resets the iterator.
dagInfoObject (MIteratorType) - Iterator object having info on filter or filterlist.
filterType (MFn.Type) - Function set type, defaults to MFn.kInvalid.
OpenMaya.MItDependencyNodes.thisNode
(
)
thisNode() -> MObject
Retrieves the dependency node to which the iterator points.