def active(cls): """ Return active selection mask. """ mask = { MGlobal.kSelectObjectMode: MGlobal.objectSelectionMask(), MGlobal.kSelectComponentMode: MGlobal.componentSelectionMask(), }[MGlobal.selectionMode()] return cls(mask)
def mode(self): return MGlobal.selectionMode()