SIAssignMaterial
 
 
 

SIAssignMaterial

Introduced

v4.0

Description

Assigns a material to a list of objects.

Scripting Syntax

SIAssignMaterial( [Objects], Material );

Parameters

Parameter Type Description
Objects String Objects that will be assigned the new material.
Material String Material to add

Examples

VBScript Example

' The following example uses SIAssignMaterial to 
' assign a material to the given object.
CreatePrim "Cone", "MeshSurface"
SICreateMaterial ,"TestMaterial","Sources.Materials.DefaultLib"
SIAssignMaterial "Cone", "Sources.Materials.DefaultLib.TestMaterial"
logmessage selection(0).material.fullname

See Also

AddProp SIAddProp SIUnAssignMaterial