Introduced
4.0
Description
Sets the current material library. All new materials will be automatically added to the current library.
Scripting Syntax
SetCurrentMaterialLibrary( InputObj )
Parameters
|
Parameter |
Type |
Description |
|
InputObj |
The library to set as current. Default Value: Selected material library object |
Examples
1. JScript Example
// JScript example
var MatLib = CreateLibrary ("MyNewMaterials")(0);
SetCurrentMaterialLibrary( MatLib );
logmessage ( ActiveProject.ActiveScene.ActiveMaterialLibrary );
2. VBScript Example
' VBScript example
set MatLib = CreateLibrary ("MyNewMaterials" )(0)
logmessage typename( MatLib )
SetCurrentMaterialLibrary MatLib
logmessage "The current Material Library is: " & activeproject.activescene.ActiveMaterialLibrary
See Also
SOFTIMAGE|XSI v6.01