Python API 2.0 Reference: OpenMayaRender.MPxComponentConverter Class Reference

+ Inheritance diagram for OpenMayaRender.MPxComponentConverter:

Public Member Functions

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

Detailed Description

Base class for user defined component converter.

Constructor & Destructor Documentation

OpenMayaRender.MPxComponentConverter.__init__ ( )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Member Function Documentation

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.
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.
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.
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.