MorpherMaterial : Material

MorpherMaterial - superclass: material; super-superclass:MAXWrapper - classID: #(1268332512, 974929316) 

Value > MAXWrapper > Material > MorpherMaterial

Constructor

MorpherMaterial... 

Properties

<MorpherMaterial>.Channel_0 Float default: 0.0 -- animatable, percentage 
<MorpherMaterial>.Channel_1 Float default: 0.0 -- animatable, percentage 
<MorpherMaterial>.Channel_2 Float default: 0.0 -- animatable, percentage 

......

<MorpherMaterial>.Channel_98 Float default: 0.0 -- animatable, percentage 
<MorpherMaterial>.Channel_99 Float default: 0.0 -- animatable, percentage 
<MorpherMaterial>.Channel_100 Float default: 0.0 -- animatable, percentage 

   

<MorpherMaterial>.base 

   

<MorpherMaterial>.Mat_1 
<MorpherMaterial>.Mat_2 
<MorpherMaterial>.Mat_3 

......

<MorpherMaterial>.Mat_98 
<MorpherMaterial>.Mat_99 
<MorpherMaterial>.Mat_100 
NOTE:

The Morph modifier associated with a MorpherMaterial can not be set using MAXScript.

The Channel_N properties are instances of the Morph modifier channel percentage properties, where MorpherMaterial Channel_N corresponds to the Morph modifier channel N+1 . The MorpherMaterial Channel_100 value corresponds to Morph modifier base object percentage.

The Channel_N property values are 100* the value shown for the corresponding Morph modifier channel percentage value.

The submaterial for each channel is accessible through the properties .base and .Mat_1 through .Mat_100 .

As an example, suppose you had an object called MyMorph which has two morph channels defined, and a MorpherMaterial applied to it. You would need to assign the channel submaterials in the 3ds Max user interface. To access this material and its submaterials you could use:

EXAMPLE

mtl=$MyMorph.material-- get the MorpherMaterial
MM_C1_percent=mtl.Channel_0/100.-- get morph target 1 percentage and scale it correctly
MM_C1_mtl=mtl.Mat_1-- get morph target 1 submaterial
MM_base_percent=mtl.Channel_100/100.-- get morph base object percentage and scale it correctly
MM_base_mtl=mtl.base -- get morph base object submaterial 

See Also