OpenMaya.MRichSelection Class Reference
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.
OpenMaya.MRichSelection.__init__ |
( |
| ) |
|
x.__init__(...) initializes x; see help(type(x)) for signature
OpenMaya.MRichSelection.clear |
( |
| ) |
|
clear() -> self
Empties the rich selection.
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.
OpenMaya.MRichSelection.getSelection |
( |
| ) |
|
getSelection() -> MSelectionList
Returns a copy of the non-symmetry component of the rich selection.
OpenMaya.MRichSelection.getSymmetry |
( |
| ) |
|
getSymmetry() -> MSelectionList
Returns a copy of the symmetry component of the rich selection.
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).
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.
OpenMaya.MRichSelection.setSelection |
( |
| ) |
|
setSelection(MSelectionList) -> self
Sets the non-symmetry component of the rich selection.