MaxwellMayaMXSReference class

Description

Objects of this kind allow you to reference external MXS files into the current scene. The shapes and materials contained in the referenced file will be merged into the scene at render time (any cameras, render options, environment settings etc. are ignored). If you apply a material on the reference object using SetMaterial, it will be used for all the objects in the MXS file; otherwise, the material bindings contained in the file are used. The transformation you apply with SetTransformation is added to the transformation of each object in the referenced scene, so they will keep their relative positions.

You can create MXS reference objects by calling MaxwellMayaAPI::CreateMXSReference. The inherited GetShapeType method returns ShapeType_MXSReference.

Base class: MaxwellMayaShape.

Methods

voidSetReferencedFile(const MString& fileName)
MStringGetReferencedFile() const
 Inherited methods

void SetReferencedFile(const MString& fileName)

Sets the referenced MXS file path.

MString GetReferencedFile() const

Returns the referenced MXS file path.