x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MItSurfaceCV.__iter__
(
)
x.__iter__() <==> iter(x)
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.
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.
OpenMaya.MItSurfaceCV.index
(
)
index() -> int
Get the index of the current CV as it appears in CV array for this surface.
OpenMaya.MItSurfaceCV.isDone
(
)
isDone() -> bool
Returns True if the iteration is finished, i.e. there are no more CVs to iterate on.
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.
OpenMaya.MItSurfaceCV.iter
(
)
iter() -> self
Initializes the iterator object for pythonic iteration.
OpenMaya.MItSurfaceCV.iternext
(
)
iternext() -> self
Used in pythonic iteration to move the iterator
OpenMaya.MItSurfaceCV.next
(
)
x.next() -> the next value, or raise StopIteration
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.
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
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.
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
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
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.
OpenMaya.MItSurfaceCV.uvIndices
(
)
uvIndices() -> (indexU, indexV)
Get the u and v index of the current CV.