Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __iter__ () |
def | __next__ () |
def | currentItem () |
def | hasHistoryOnCreate () |
def | index () |
def | isDone () |
def | next () |
def | position () |
def | reset () |
def | setPosition () |
def | translateBy () |
def | updateCurve () |
Static Public Member Functions | |
def | __new__ () |
An iterator for traversing a curve's CVs.
def OpenMaya.MItCurveCV.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
def OpenMaya.MItCurveCV.__iter__ | ( | ) |
Implement iter(self).
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MItCurveCV.__next__ | ( | ) |
Implement next(self).
def OpenMaya.MItCurveCV.currentItem | ( | ) |
currentItem() -> MObject Returns the current CV in the iteration as an MObject.
def OpenMaya.MItCurveCV.hasHistoryOnCreate | ( | ) |
hasHistoryOnCreate() -> bool This method determines if the shape was created with history. If the object that this iterator is attached to is not a shape then this method will fail.
def OpenMaya.MItCurveCV.index | ( | ) |
index() -> int Returns the index of the current edge in the iteration.
def OpenMaya.MItCurveCV.isDone | ( | ) |
isDone() -> bool Indicates if all of the edges have been traversed yet.
def OpenMaya.MItCurveCV.next | ( | ) |
next() -> self Advances to the next edge in the iteration.
def OpenMaya.MItCurveCV.position | ( | ) |
position() -> MPoint Returns the position of the current CV.
def OpenMaya.MItCurveCV.reset | ( | ) |
reset() -> self reset(curve) -> self reset(curve, component=None) -> self Reset the iterator to the first CV of the curve. Reset the iterator to the first CV of the specified curve * curve (MObject) - The curve for the iteration Reset the iterator with the given curve and component. If component is None then the iteration will be for all CVs in the curve. * curve (MDagPath) - The curve to iterate over * component (MObject) - The CVs of the curve to iterate over
def OpenMaya.MItCurveCV.setPosition | ( | ) |
setPosition(point, space=kObject) -> self Sets the position of the current CV, in the given transformation space. * point (MPoint) - The new position for the specified vertex * space (MSpace constant) - The transformation space
def OpenMaya.MItCurveCV.translateBy | ( | ) |
translateBy(vector, space=kObject) -> self Translate the current CV by the amount specified by the given vector. * vector (MVector) - The amount of translation * space (int) - The Transformation space
def OpenMaya.MItCurveCV.updateCurve | ( | ) |
updateCurve() -> self This method is used to signal the curve that it has been changed and needs to redraw itself. When modifying a large number of CVs, it is most efficient to call this method after all of the CVs have been modified.