v4.0
Sets the current material library. All new materials will be automatically added to the current library.
SetCurrentMaterialLibrary( InputObj ); |
Parameter | Type | Description |
---|---|---|
InputObj | String |
The library to set as current. Default Value: Selected material library object |
// JScript example var MatLib = CreateLibrary ("MyNewMaterials")(0); SetCurrentMaterialLibrary( MatLib ); logmessage ( ActiveProject.ActiveScene.ActiveMaterialLibrary ); |
' VBScript example set MatLib = CreateLibrary ("MyNewMaterials" )(0) logmessage typename( MatLib ) SetCurrentMaterialLibrary MatLib logmessage "The current Material Library is: " & activeproject.activescene.ActiveMaterialLibrary |