Python API 2.0 Reference: OpenMaya.MItDependencyNodes Class Reference

OpenMaya.MItDependencyNodes Class Reference
+ Inheritance diagram for OpenMaya.MItDependencyNodes:

Public Member Functions

__init__ ()
 
__iter__ ()
 
__next__ ()
 
isDone ()
 
iter ()
 
iternext ()
 
next ()
 
reset ()
 
thisNode ()
 

Static Public Member Functions

__new__ ()
 

Detailed Description

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__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

OpenMaya.MItDependencyNodes.__iter__ ( )
Implement iter(self).
OpenMaya.MItDependencyNodes.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
OpenMaya.MItDependencyNodes.__next__ ( )
Implement next(self).
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 ( )
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.