Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | __iter__ () |
def | __next__ () |
def | currentItem () |
def | hasHistoryOnCreate () |
def | index () |
def | isDone () |
def | isRowDone () |
def | iter () |
def | iternext () |
def | next () |
def | nextRow () |
def | position () |
def | reset () |
def | setPosition () |
def | translateBy () |
def | updateSurface () |
def | uvIndices () |
Static Public Member Functions | |
def | __new__ () |
NURBS surface CV iterator.
def OpenMaya.MItSurfaceCV.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
def OpenMaya.MItSurfaceCV.__iter__ | ( | ) |
Implement iter(self).
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MItSurfaceCV.__next__ | ( | ) |
Implement next(self).
def OpenMaya.MItSurfaceCV.currentItem | ( | ) |
currentItem() -> MObject Get the current CV in the iteration as a component. Components are used to specify one or more CVs and are useful in operating on groups of non-contiguous CVs for a curve or surface. Components do not contain any information about the surface that they refer to so an MDagPath must be specified when dealing with components.
def OpenMaya.MItSurfaceCV.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 raise.
def OpenMaya.MItSurfaceCV.index | ( | ) |
index() -> int Get the index of the current CV as it appears in CV array for this surface.
def OpenMaya.MItSurfaceCV.isDone | ( | ) |
isDone() -> bool Returns True if the iteration is finished, i.e. there are no more CVs to iterate on.
def OpenMaya.MItSurfaceCV.isRowDone | ( | ) |
isRowDone() -> bool Returns True if the current row has no more CVs to iterate over. The row can be in the U or V direction depending on what value of useURows has been set in the constructor.
def OpenMaya.MItSurfaceCV.iter | ( | ) |
iter() -> self Initializes the iterator object for pythonic iteration.
def OpenMaya.MItSurfaceCV.iternext | ( | ) |
iternext() -> self Used in pythonic iteration to move the iterator
def OpenMaya.MItSurfaceCV.next | ( | ) |
next() -> self Advance to the next CV in the iteration. If the iterator is already at the last CV then this method has no effect. Use isDone() to determine if the iterator is at the last CV.
def OpenMaya.MItSurfaceCV.nextRow | ( | ) |
nextRow() -> self Advance to the next row in the iteration. The row can be in the U or V direction depending on what value of useURows has been set in the constructor.
def OpenMaya.MItSurfaceCV.position | ( | ) |
position(space=kObject) -> MPoint Returns the position of the current CV in the iteration in the specified space. * space (int) - The coordinate space in which the CV is set
def OpenMaya.MItSurfaceCV.reset | ( | ) |
reset() -> self reset(surface, useURows=True) -> self reset(surface, component, useURows=True) -> self Reset the iterator to the first CV. Or Reset the iterator to iterate over all CVs on the specified surface. * surface (MObject) - The surface for the iteration * useURows (bool) - If True then the iterator will iterate in the U direction, otherwise it will be in the V direction. Or Reset the iterator to iterate over the CVs of the given surface that are specified in the given component. If the component is NULL then the iteration will be over all CVs on the surface. * surface (MDagPath) - The surface for the iteration * component (MObject) - A group of CVs to be iterated on * useURows (bool) - If True then the iterator will iterate in the U direction, otherwise it will be in the V direction.
def OpenMaya.MItSurfaceCV.setPosition | ( | ) |
setPosition(point, space=kObject) -> self Set the position of the current CV in the iteration to the specified point. * point (MPoint) - The new position for the current CV in the iteration * space (int) - The coordinate space in which the CV is set
def OpenMaya.MItSurfaceCV.translateBy | ( | ) |
translateBy(vector, space=kObject) -> self Move the current CV in the iteration by the sepcified vector. * vector (MVector) - The translation vector * space (int) - The coordinate space in which the CV is set
def OpenMaya.MItSurfaceCV.updateSurface | ( | ) |
updateSurface() -> self This method is used to signal the surface 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.
def OpenMaya.MItSurfaceCV.uvIndices | ( | ) |
uvIndices() -> (indexU, indexV) Get the u and v index of the current CV.