Scene.Layers

Scene.Layers

説明

シーンに関連するLayerオブジェクトのコレクションを表すLayerCollectionを戻します。

C#構文

// get accessor

LayerCollection rtn = Scene.Layers;

JScript の例

/*

	This example demonstrates how to create and access scene layers

*/

NewScene( null, false );

// First create some extra layers

var n1 = ActiveSceneRoot.AddNull();

var n2 = ActiveSceneRoot.AddNull();

var n3 = ActiveSceneRoot.AddNull();

CreateLayer( null, "TestLayerWith2Nulls", n1 + "," + n2 );

CreateLayer( null, "TestLayerWith1Null", n3 );

var layers = ActiveProject.ActiveScene.Layers;

var l = new Enumerator( layers );

for ( ; ! l.atEnd(); l.moveNext() ) {

LogMessage( l.item() );

}

// Expected result:

//INFO : Layers.Layer_Default

//INFO : Layers.TestLayerWith2Nulls

//INFO : Layers.TestLayerWith1Null

関連項目

Scene.ActiveLayer Layer LayerCollection GetCurrentLayer CreateLayer SICreateLayer DeleteCurrentLayer