MaxwellMayaMaterialAttrs class

Description

This class allows you to manipulate the material-wide parameters, which are described in detail in this section of the main manual.

Texturable attributes: bump (AttrType_Double). The bump value specifies the intensity of the effect when the attribute is textured and is ignored when no texture is present.

Base class: MaxwellMayaMaterialComponent.

Methods

voidSetUseNormalMap(bool use)
boolGetUseNormalMap() const
voidSetDispersion(bool dispersion)
boolGetDispersion() const
voidSetMatte(bool matte)
boolGetMatte() const
voidSetShadows(bool shadows)
boolGetShadows() const
voidSetActiveDisplacement(unsigned int layerIndex)
unsigned intGetActiveDisplacement() const
voidSetMaterialIDColor(const MFloatVector& color)
voidGetMaterialIDColor(MFloatVector& color) const
 Inherited methods

void SetUseNormalMap(bool use)
bool GetUseNormalMap() const

When a texture is applied on the bump attribute, this attribute controls if it's used as a regular bump map, or a normal map.

Attribute name: useNormalMap (AttrType_Bool).

void SetDispersion(bool dispersion)
bool GetDispersion() const

This attribute decides if Maxwell computes light dispersion effects for the material.

Attribute name: dispersion (AttrType_Bool).

void SetMatte(bool matte)
bool GetMatte() const

Set or get the matte flag for the material. See here for a description of the feature.

Attribute name: matte (AttrType_Bool).

void SetShadows(bool shadows)
bool GetShadows() const

Set or get the shadows flag for the material. See here for a description of the feature.

Attribute name: shadows (AttrType_Bool).

bool SetActiveDisplacement(unsigned int layerIndex)
unsigned int GetActiveDisplacement() const

This attribute controls which layer provides the active displacement component for the material.

Attribute name: activeDisplacement (AttrType_Int).

void SetMaterialIDColor(const MFloatVector& color)
void GetMaterialIDColor(MFloatVector& color) const

This attribute provides the color used by material in the Material ID pass. If the color is not specified explicitly, the material will use a random color. In Python, SetMaterialIDColor takes the red, green and blue values as separate arguments (in the range 0..1) and GetMaterialIDColor returns a 3-tuple with the RGB values.

Attribute name: matIDColor (AttrType_Color).