Python API 2.0 Reference
OpenMayaRender.MSelectionInfo Class Reference
+ Inheritance diagram for OpenMayaRender.MSelectionInfo:

Public Member Functions

def __init__ ()
 
def selectForHilite ()
 
def selectable ()
 
def selectableComponent ()
 

Static Public Member Functions

def __new__ ()
 

Properties

 alignmentMatrix = property(...)
 
 cursorPoint = property(...)
 
 isRay = property(...)
 
 isSingleSelection = property(...)
 
 localRay = property(...)
 
 pointSnapping = property(...)
 
 selectClosest = property(...)
 
 selectOnHilitedOnly = property(...)
 
 selectRect = property(...)
 

Detailed Description

This class gives informations on the selection.

Constructor & Destructor Documentation

def OpenMayaRender.MSelectionInfo.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMayaRender.MSelectionInfo.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMayaRender.MSelectionInfo.selectable ( )
selectable(mask) -> bool

Given the selection mask, determines if the shape is selectable.

* mask (MSelectionMask) - The mask to test.
def OpenMayaRender.MSelectionInfo.selectableComponent ( )
selectableComponent(displayed, mask) -> bool

Given the selection mask, determines if the component is selectable.

* displayed (bool) - Is the component displayed.
* mask (MSelectionMask) - The mask to test.
def OpenMayaRender.MSelectionInfo.selectForHilite ( )
selectForHilite(mask) -> bool

Given the selection mask, determines if this shape can be selected for the hilite list.

* mask (MSelectionMask) - The mask to test.

Property Documentation

OpenMayaRender.MSelectionInfo.alignmentMatrix = property(...)
static
 The alignment matrix.
 This is used to find ray object intersection.
OpenMayaRender.MSelectionInfo.cursorPoint = property(...)
static
 The cursor point (x, y) relative to the lower left corner of the viewport.
OpenMayaRender.MSelectionInfo.isRay = property(...)
static
 Whether or not there is a selection ray.
 This is used to find ray object intersection
OpenMayaRender.MSelectionInfo.isSingleSelection = property(...)
static
 Whether or not we want to select a single shape or component.
OpenMayaRender.MSelectionInfo.localRay = property(...)
static
 The selection ray (starting point and direction).
 This is used to find ray object intersection
OpenMayaRender.MSelectionInfo.pointSnapping = property(...)
static
 Whether or not selection is launched to find snap points.
OpenMayaRender.MSelectionInfo.selectClosest = property(...)
static
 Whether or not we want to select the closest shape or component.
OpenMayaRender.MSelectionInfo.selectOnHilitedOnly = property(...)
static
 Whether or not the components can only be selected if the shape is hilited.
OpenMayaRender.MSelectionInfo.selectRect = property(...)
static
 The current selection rectangle dimensions (x, y, width, height).