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

Public Member Functions

def __init__ ()
 

Static Public Member Functions

def __new__ ()
 

Static Public Attributes

int kComponent = 2
 
int kEdge = 4
 
int kFace = 3
 
int kNone = 0
 
int kObject = 1
 
int kVertex = 5
 

Properties

 selectionLevel = property(...)
 

Detailed Description

This class gives control on the viewport 2.0 selection behavior.

Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMayaRender.MSelectionContext.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.

Property Documentation

OpenMayaRender.MSelectionContext.selectionLevel = property(...)
static
 The selection level used to pick items.
 kNone        No selection available.
 kObject      Object level.
              Objects are selected as a whole. Components are not directly accessible.
 kComponent   Component level.
              Components such as vertices, edges and faces are selectable. Selection
              level of each individual MIntersection object is determined by primitive
              type of the render item.
 kFace        Face level.
 kEdge        Edge level.
 kVertex      Vertex level.