/*
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 |