Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | clear () |
def | getRawSymmetryMatrix () |
def | getSelection () |
def | getSymmetry () |
def | getSymmetryMatrix () |
def | getSymmetryPlane () |
def | setSelection () |
Static Public Member Functions | |
def | __new__ () |
A selection list supporting soft selection and symmetry. The rich selection is split into two halves: the 'normal' side, and an optional symmetric component. Components on both sides can include weight data which is used to specify both the amount of influence and the proximity to the centre of symmetry. In addition to the selected objects, the rich selection also includes information about the axis of symmetry so that operations can determine how to process any symmetric selection (e.g. reflect transformations). __init__() Initializes a new, empty MRichSelection object. __init__(MRichSelection other) Initializes a new MRichSelection object containing the same items as another rich selection.
def OpenMaya.MRichSelection.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMaya.MRichSelection.clear | ( | ) |
clear() -> self Empties the rich selection.
def OpenMaya.MRichSelection.getRawSymmetryMatrix | ( | ) |
getRawSymmetryMatrix() -> (MMatrix, space) Returns a tuple containing the raw symmetry matrix to use for the symmetric components of the rich selection, and the transformation space used by the matrix (see MSpace). The caller is responsible for handling any necessary transformation space conversions.
def OpenMaya.MRichSelection.getSelection | ( | ) |
getSelection() -> MSelectionList Returns a copy of the non-symmetry component of the rich selection.
def OpenMaya.MRichSelection.getSymmetry | ( | ) |
getSymmetry() -> MSelectionList Returns a copy of the symmetry component of the rich selection.
def OpenMaya.MRichSelection.getSymmetryMatrix | ( | ) |
getSymmetryMatrix(MDagPath, space) -> MMatrix Returns the symmetry matrix to use for the symmetric component of the specified DAG object. The matrix will already be converted to use the specified transformation space (see MSpace).
def OpenMaya.MRichSelection.getSymmetryPlane | ( | ) |
getSymmetryPlane(MDagPath, space) -> MPlane Returns the plane of symmetry, in the specified transformation space (see MSpace). This can be used to enforce seam weights in tools that support symmetry. Note that the direction of the plane carries no significance. Specifically, having a positive offset from the plane does not imply a point is part of the non-symmetric selection.
def OpenMaya.MRichSelection.setSelection | ( | ) |
setSelection(MSelectionList) -> self Sets the non-symmetry component of the rich selection.