Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __iter__ () |
def | __next__ () |
def | getComponent () |
def | getDagPath () |
def | getDependNode () |
def | getPlug () |
def | getStrings () |
def | hasComponents () |
def | isDone () |
def | itemType () |
def | iter () |
def | iternext () |
def | next () |
def | reset () |
def | setFilter () |
Static Public Member Functions | |
def | __new__ () |
Static Public Attributes | |
int | kAnimSelectionItem = 1 |
int | kDNselectionItem = 2 |
int | kDagSelectionItem = 0 |
int | kPlugSelectionItem = 3 |
int | kUnknownItem = -1 |
Class for iterating over the items in an MSelection list.
def OpenMaya.MItSelectionList.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
def OpenMaya.MItSelectionList.__iter__ | ( | ) |
Implement iter(self).
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MItSelectionList.__next__ | ( | ) |
Implement next(self).
def OpenMaya.MItSelectionList.getComponent | ( | ) |
getComponent() -> (MDagPath, MObject) This method retrieves the dag path and the component of the current selection item.
def OpenMaya.MItSelectionList.getDagPath | ( | ) |
getDagPath() -> MDagPath This method retrieves the dag path of the current selection item.
def OpenMaya.MItSelectionList.getDependNode | ( | ) |
getDependNode() -> MObject This method retrieves the dependency node of the current selection itemRaises kFailure if there is no dependency node associated with the current item
def OpenMaya.MItSelectionList.getPlug | ( | ) |
getPlug() -> MPlug This method retrieves the plug of the current selection item.
def OpenMaya.MItSelectionList.getStrings | ( | ) |
getStrings() -> list of strings Get the string representation of the current item in the selection list. It is possible that it will require more than one string to represent the item (the item may contain groups of CVs for example)
def OpenMaya.MItSelectionList.hasComponents | ( | ) |
hasComponents() -> bool Returns whether or not the current selection item has components.
def OpenMaya.MItSelectionList.isDone | ( | ) |
isDone() -> bool Specifies whether or not there is anything more to iterator over.
def OpenMaya.MItSelectionList.itemType | ( | ) |
itemType() -> int Returns the current selection item type. kDagSelectionItem selection item is in the DAG kAnimSelectionItem selection item is a keyset kDNselectionItem selection item is a dependency node
def OpenMaya.MItSelectionList.iter | ( | ) |
iter() -> self Initializes the iterator object for pythonic iteration.
def OpenMaya.MItSelectionList.iternext | ( | ) |
iternext() -> self Used in pythonic iteration to move the iterator
def OpenMaya.MItSelectionList.next | ( | ) |
next() -> self Advance to the next item. If components are selected then advance to next component. If a filter is specified then the next item will be one that matches the filter.
def OpenMaya.MItSelectionList.reset | ( | ) |
reset() -> self Reset the iterator. If a filter has been specified then the current item will be the first selected item that matches the filter.
def OpenMaya.MItSelectionList.setFilter | ( | ) |
setFilter(filter) -> self Apply a filter to the iteration. Selection items not matching the filter type will be excluded from the iteration.