Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Show labels only from V2 space

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

...

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

...

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

Attribute name: dispersion (AttrType_Bool).

...

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

Attribute name: matte (AttrType_Bool).

...

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

Attribute name: shadows (AttrType_Bool).

...

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

Attribute name: activeDisplacement (AttrType_Int).

...

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