Library.Items

導入

v4.0

詳細

ライブラリの各ProjectItemオブジェクトを含むProjectItemCollectionを戻します。

C#構文

// get accessor

ProjectItemCollection rtn = Library.Items;

JScript の例

/*

	This example shows how to get the current material library and how

	to enumerates all materials in the library.

*/

var oScene = Application.ActiveProject.ActiveScene;

var oMaterialLib = oScene.ActiveMaterialLibrary;

var oMaterials = oMaterialLib.Items;

for( var i=0; i<oMaterials.Count; i++ ) {

	var omat = oMaterials(i);

	Application.LogMessage( "The library: " + oMaterialLib.Name 

		+ " contains the material: " + omat.Name );

}

// Expected result:

//INFO : The library: DefaultLib contains the material: Scene_Material