Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

voidDestroy()
MaxwellMayaReflectance*GetReflectance()
const MaxwellMayaReflectance*GetReflectance() const
voidSetEnabled(bool enabled)
boolGetEnabled() const
voidSetThicknessRange(double thicknessMin, double thicknessMax)
voidGetThicknessRange(double& thicknessMin, double& thicknessMax) const
 Inherited methods

void Destroy()

Destroys the coating, removing it from the parent BSDF.

Anchor
GetReflectance
GetReflectance
MaxwellMayaReflectance* GetReflectance()
const MaxwellMayaReflectance* GetReflectance() const

Returns a handle for the reflectance sub-component of this coating.

Anchor
Enabled
Enabled
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).

Anchor
ThicknessRange
ThicknessRange
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).