Introduced
4.0
Description
Assigns a Material to a list of objects.
Scripting Syntax
SICreateMaterial( PresetObj, [Name], [Library], [Objects], [AssignToList], [Initialize] )
Parameters
|
Parameter |
Type |
Description |
|
PresetObj |
A preset from one of the following lists: Material (Surface) Shader Presets, Illumination (Surface) Shader Presets, Raytracing (Surface) Shader Presets, Legacy Shader Presets, Subsurface Shader Presets |
|
|
Name |
Default Value: "Material" |
|
|
Library |
Library that will receive the new material. Default Value: Current selection |
|
|
Objects |
Objects that will be assigned the new material. Default Value: Current selection |
|
|
AssignToList |
True to assign the material to the list of objects. Default Value: true |
|
|
Initialize |
True to initialize Default Value: true |
Return Value
Nothing
Examples
1. VBScript Example
' The following example uses SIAssignMaterial to ' assign a default material to the given object. NewScene , false CreatePrim "Cone", "MeshSurface" DeselectAll SICreateMaterial SIAssignMaterial "Cone","Sources.Materials.DefaultLib.Scene_Material"
2. VBScript Example
' The following example uses SIAssignMaterial to ' assign a Blinn material to the given object. NewScene , false CreatePrim "Cone", "MeshSurface" DeselectAll SICreateMaterial "Blinn","Blinn" SIAssignMaterial "Cone","Sources.Materials.DefaultLib.Blinn"
3. VBScript Example
' The following example uses SIAssignMaterial to ' assign a constant material to the given object. NewScene , false CreatePrim "Cone", "MeshSurface" DeselectAll SICreateMaterial "Constant", "Constant" SIAssignMaterial "Cone","Sources.Materials.DefaultLib.Material"
See Also
Autodesk Softimage v7.5