OpenMayaRender.MPxComponentConverter Class Reference

Class Description

Base class for user defined component converter.
+ Inheritance diagram for OpenMayaRender.MPxComponentConverter:

Public Member Functions

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

Constructor & Destructor Documentation

OpenMayaRender.MPxComponentConverter.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) 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.

The documentation for this class was generated from the following file:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMayaRender.py