v4.0
Source
現在のマテリアル ライブラリを設定します。 新しいマテリアルはすべて自動的に現在のライブラリに追加されます。
SetCurrentMaterialLibrary( InputObj ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| InputObj | 文字列 | 現在のライブラリとして設定するライブラリ。
デフォルト値:選択されているマテリアルライブラリオブジェクト |
// 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
|