MaxwellMayaCoating class
Description
Coatings are used in Maxwell to simulate thin film interference. See this section in the main manual for details on the feature.
Texturable attributes:Â thickness (AttrType_Double
).
Base class:Â MaxwellMayaMaterialComponent
.
Methods
void | Destroy() |
MaxwellMayaReflectance* | GetReflectance() |
const MaxwellMayaReflectance* | GetReflectance() const |
void | SetEnabled(bool enabled) |
bool | GetEnabled() const |
void | SetThicknessRange(double thicknessMin, double thicknessMax) |
void | GetThicknessRange(double& thicknessMin, double& thicknessMax) const |
 | Inherited methods |
void Destroy()
Destroys the coating, removing it from the parent BSDF.
MaxwellMayaReflectance*Â GetReflectance()
const MaxwellMayaReflectance* GetReflectance() const
Returns a handle for the reflectance sub-component of this coating.
void SetEnabled(bool enabled)
bool GetEnabled() const
Coatings can be disabled, in which case they do not contribute to the rendering in any way.
Attribute name: enabled (AttrType_Bool
).
void SetThicknessRange(double thicknessMin, double thicknessMax)
void GetThicknessRange(double& thicknessMin, double& thicknessMax) const
When the thickness attribute is textured, these two values control the range where the texture values are mapped: black corresponds to thicknessMin and white corresponds to thicknessMax. In Python, GetThicknessRange
takes no arguments and returns the values as a 2-tuple.
Attribute names:Â thicknessMin (AttrType_Double
), thicknessMax (AttrType_Double
).