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