Description
Assigns a material to a list of objects.
Scripting Syntax
SIAssignMaterial( [Objects], Material )
Parameters
|
Parameter |
Type |
Description |
|
Objects |
Objects that will be assigned the new material. |
|
|
Material |
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
SOFTIMAGE|XSI v6.01