Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | addMask () |
def | copy () |
def | intersects () |
def | setMask () |
Static Public Member Functions | |
def | __new__ () |
def | deregisterSelectionType () |
def | getSelectionTypePriority () |
def | registerSelectionType () |
Selection masks provide a way to control what is selectable in Maya.
def OpenMaya.MSelectionMask.__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.MSelectionMask.addMask | ( | ) |
addMask(selType) -> self Add the specified selection type to this mask. * selType (int) - the selection type to add. Valid selection types: kSelectHandles kSelectLocalAxis kSelectIkHandles kSelectIkEndEffectors kSelectJoints kSelectLights kSelectCameras kSelectLattices kSelectClusters kSelectSculpts kSelectNurbsCurves kSelectNurbsSurfaces kSelectMeshes kSelectSubdiv kSelectSketchPlanes kSelectParticleShapes kSelectEmitters kSelectFields kSelectSprings kSelectRigidBodies kSelectRigidConstraints kSelectCollisionModels kSelectXYZLocators kSelectOrientationLocators kSelectUVLocators kSelectTextures kSelectCurves kSelectSurfaces kSelectLocators kSelectObjectsMask kSelectCVs kSelectHulls kSelectEditPoints kSelectMeshVerts kSelectMeshEdges kSelectMeshFreeEdges kSelectMeshFaces kSelectSubdivMeshPoints kSelectSubdivMeshEdges kSelectSubdivMeshFaces kSelectMeshUVs kSelectVertices kSelectEdges kSelectFacets kSelectMeshLines kSelectMeshComponents kSelectCurveParmPoints kSelectCurveKnots kSelectSurfaceParmPoints kSelectSurfaceKnots kSelectSurfaceRange kSelectSurfaceEdge kSelectIsoparms kSelectCurvesOnSurfaces kSelectPPStrokes kSelectLatticePoints kSelectParticles kSelectJointPivots kSelectScalePivots kSelectRotatePivots kSelectPivots kSelectComponentsMask kSelectAnimCurves kSelectAnimKeyframes kSelectAnimInTangents kSelectAnimOutTangents kSelectAnimMask kSelectAnimAny kSelectTemplates kSelectManipulators kSelectGuideLines kSelectPointsForGravity kSelectPointsOnCurvesForGravity kSelectPointsOnSurfacesForGravity kSelectObjectGroups kSelectSubdivMeshMaps kSelectFluids kSelectHairSystems kSelectFollicles kSelectNCloths kSelectNRigids kSelectDynamicConstraints kSelectNParticles
def OpenMaya.MSelectionMask.copy | ( | ) |
copy(source) -> self Copy data from source selection mask. * source (MSelectionMask) - The source selection mask to copy from
|
static |
deregisterSelectionType(selTypeName) -> bool Unregisters a previously registered selection type. * selTypeName (string) - Name of the selection type.
|
static |
getSelectionTypePriority(selTypeName) -> int Gets the selection priority corresponding to a given selection type. * selTypeName (string) - Name of the selection type.
def OpenMaya.MSelectionMask.intersects | ( | ) |
intersects(mask) -> bool intersects(selType) -> bool Returns True if the specified selection mask or selection type is contained within this selection mask. * mask (MSelectionMask) - the selection mask to test. * selType (int) - the selection type to test. See addMask() for a list of valid selection masks.
|
static |
registerSelectionType(selTypeName, priority=0) -> bool Registers a new selection type. It is perfectly legal for 2 plug-ins to register the same selection type. Currently we use the registration count. The selection type is deleted only when deregisterSelectionType() as been called the same number of times as this function - registerSelectionType(). When registerSelectionType() is invoked and the selection type already exists, we neither enable it nor change its priority, just add its registration count by 1. The reason is the user might has modified these values after loading the plug-in that has register the selection type the first time. * selTypeName (string) - Name of the selection type. * priority (int) - Priority of the selection type.
def OpenMaya.MSelectionMask.setMask | ( | ) |
setMask(mask) -> self setMask(selType) -> self Sets the selection mask to the specified selection mask or selection type. * mask (MSelectionMask) - the selection mask to be set. * selType (int) - the selection type to be set. See addMask() for a list of valid selection masks.