MaxwellMayaInstance class
Description
Instances allow you to share geometry data between objects, reducing memory usage when several copies of the same object need to be present in the scene. Each instance can have its own transformation and material. If you do not explicitly assign a material to an instance (using the inherited SetMaterial
method), it will use the material from the original object. It is not possible to assign per-face materials to an instance, but if you do not set a material and the original object has per-face assignments, they will be used.
You can create instances by calling MaxwellMayaAPI::CreateInstance
. The inherited GetShapeType
method returns ShapeType_Instance
.
Base class:Â MaxwellMayaShape
.
Methods
MaxwellMayaShape* | GetOriginal() const |
 | Inherited methods |
MaxwellMayaShape*Â GetOriginal() const
Returns the original object. This can be any kind of shape except another instance (instances of instances are not supported).