Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __iter__ () |
def | __next__ () |
def | isDone () |
def | iter () |
def | iternext () |
def | next () |
def | reset () |
def | thisNode () |
Static Public Member Functions | |
def | __new__ () |
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.
def OpenMaya.MItDependencyNodes.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
def OpenMaya.MItDependencyNodes.__iter__ | ( | ) |
Implement iter(self).
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MItDependencyNodes.__next__ | ( | ) |
Implement next(self).
def OpenMaya.MItDependencyNodes.isDone | ( | ) |
isDone() -> Bool Indicates end of the iteration.
def OpenMaya.MItDependencyNodes.iter | ( | ) |
iter() -> self Initializes the iterator object for pythonic iteration.
def OpenMaya.MItDependencyNodes.iternext | ( | ) |
iternext() -> self Used in pythonic iteration to move the iterator
def 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.
def 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.
def OpenMaya.MItDependencyNodes.thisNode | ( | ) |
thisNode() -> MObject Retrieves the dependency node to which the iterator points.