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

Public Member Functions

def __init__ ()
 
def addIntersection ()
 
def component ()
 
def initialize ()
 
def selectionMask ()
 

Static Public Member Functions

def __new__ ()
 

Detailed Description

Base class for user defined component converter.

Constructor & Destructor Documentation

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

Member Function Documentation

def OpenMayaRender.MPxComponentConverter.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMayaRender.MPxComponentConverter.addIntersection ( )
addIntersection(intersection) -> self

Maya calls this function for every selection hit on the render item.
The intersection gives information on the component that was hit.

* intersection (MIntersection) - The selection intersection.
def OpenMayaRender.MPxComponentConverter.component ( )
component() -> MObject

Once all of the geometry hits have been passed to the converter through calls to addIntersection(), Maya will call this method to retrieve the components corresponding to those hits.

Returns the component selection.
def OpenMayaRender.MPxComponentConverter.initialize ( )
initialize(renderItem) -> self

Maya calls this function to allow the converter to initialize itself for the selection on the given render item.

* renderItem (MRenderItem) - The render item.
def OpenMayaRender.MPxComponentConverter.selectionMask ( )
selectionMask() -> MSelectionMask

Maya calls this function to allow the converter to specify the type of components it can handle..

Returns the selection mask.