## Scene.Layers

### Description

Returns a LayerCollection representing the collection of Layer objects associated with the scene.

### C# Syntax

    // get accessor

    LayerCollection rtn = Scene.Layers;

### Examples

#### JScript Example

    /*

    	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

### See Also

Scene.ActiveLayer Layer LayerCollection GetCurrentLayer CreateLayer SICreateLayer DeleteCurrentLayer