|
Python API 2.0 Reference
|
Inheritance diagram for OpenMayaRender.MGeometryUtilities:Static Public Member Functions | |
| def | acquireReferenceGeometry () |
| def | displayStatus () |
| def | releaseReferenceGeometry () |
| def | wireframeColor () |
Utilities for Viewport 2.0
|
static |
acquireReferenceGeometry(shape, requirements) -> MGeometry Acquire reference geometry with required buffers. The user is responsible for releasing the geometry when it is no longer needed, by calling MGeometryUtilities::releaseReferenceGeometry(). * shape (int) - The shape of the requested geometry. * requirements (MGeometryRequirements) - The list of required index and vertex buffers. Valid geometry shapes: kDefaultSphere Sphere with radius 1, centered at 0,0,0. kDefaultPlane Plane with width and height of 1, centered at 0,0,0. Assuming Y-Up orientation: width = x-axis, and height = y-axis. kDefaultCube Cube with width, height and depth of 1, centered at 0,0,0.
|
static |
displayStatus(path) -> DisplayStatus Returns the display status of the given DAG path. Note that the last selected object will have status kLead instead of kActive and if only one object is selected the status will be kLead. * path (MDagPath) - The DAG path to get.
|
static |
releaseReferenceGeometry(geometry) -> None Release a generated reference geometry. * geometry (MGeometry) - The geometry to delete.
|
static |
wireframeColor(path) -> MColor Returns the wireframe color used in Viewport 2.0 for the given DAG path. * path (MDagPath) - The DAG path to get wireframe color.