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.
Constructor & Destructor Documentation
OpenMaya.MItDependencyNodes.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MItDependencyNodes.__iter__
(
)
x.__iter__() <==> iter(x)
OpenMaya.MItDependencyNodes.isDone
(
)
isDone() -> Bool
Indicates end of the iteration.
OpenMaya.MItDependencyNodes.iter
(
)
iter() -> self
Initializes the iterator object for pythonic iteration.
OpenMaya.MItDependencyNodes.iternext
(
)
iternext() -> self
Used in pythonic iteration to move the iterator
OpenMaya.MItDependencyNodes.next
(
)
x.next() -> the next value, or raise StopIteration
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.