Shell_Material : Material

Shell_Material - superclass: material; super-superclass:MAXWrapper - classID: #(597, 0)

 

This material is used to accomodate texture baking results with alternative display in viewport and rendering.

Constructor

Shell_Material ...

BakeShell ...

Properties

<Shell_Material>.bakedMaterial Standardmaterial default: Standard -- material; Baked_Material; SubAnim

Get/Set the baked material.

<Shell_Material>.originalMaterial Standardmaterial default: Standard -- material; Original_Material; SubAnim

Get/Set the original material.

<Shell_Material>.renderMtlIndex Integer default: 0 -- integer; Rendering_Material

Get/Set the index of the material for rendering.

0 - use the Original Material for rendering

1 - use the Baked Material for rendering

<Shell_Material>.viewportMtlIndex Integer default: 0 -- integer; Viewport_Material

Get/Set the index of the material for viewport display.

0 - use the Original Material in the viewport

1 - use the Baked Material in the viewport

Example:

--Set all scene Shell materials to use Original in Viewport

--and Baked in rendering:

for m in scenematerials do

(

if classof m == Shell_Material then

(

m.viewportMtlIndex = 0

m.renderMtlIndex = 1

)

)

See also

Material Common Properties, Operators, and Methods

MAXWrapper Common Properties, Operators, and Methods

Value Common Properties, Operators, and Methods