copy(source) -> self
Copy data from source selection mask.
* source (MSelectionMask) - The source selection mask to copy from
OpenMaya.MSelectionMask.deregisterSelectionType
(
)
static
deregisterSelectionType(selTypeName) -> bool
Unregisters a previously registered selection type.
* selTypeName (string) - Name of the selection type.
OpenMaya.MSelectionMask.getSelectionTypePriority
(
)
static
getSelectionTypePriority(selTypeName) -> int
Gets the selection priority corresponding to a given selection type.
* selTypeName (string) - Name of the selection type.
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.
OpenMaya.MSelectionMask.registerSelectionType
(
)
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.
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.