LayerCollection

Introduced

4.0

Description

A collection of Layer objects that represent the layers in the Scene.

Properties

LayerCollection.Count | LayerCollection.Item

Examples

JScript Example

    /*

    This example demonstrates how to access the layers collection
    and get the first layer (the default) in the collection.

    */
    var oLayers = ActiveProject.ActiveScene.Layers;
    LogMessage( ClassName(oLayers) ); // Returns "LayerCollection"
    LogMessage( oLayers(0) ); // Returns "Layers.Layer_Default"
    LogMessage( ClassName(oLayers(0)) ); // Returns "Layer"

See Also

Scene.Layers

Autodesk Softimage v7.5