ActiveLayer (Scene)

Description

Returns the currently active Layer object. Layers help you organize, view, and edit the contents in your scene, but they only affect the final render if you want them to (they are not associated with render passes).

C# Syntax

    // get accessor
    Layer rtn = Scene.ActiveLayer;

Examples

VBScript Example

    '
    ' This example demonstrates how to get the current layer
    '
    NewScene , false
    set oCurrentLayer = ActiveProject.ActiveScene.ActiveLayer
    LogMessage oCurrentLayer

    ' Expected result:
    'INFO : Layers.Layer_Default

See Also

Scene.Layers | Layer | LayerCollection | GetCurrentLayer
CreateLayer | SICreateLayer | DeleteCurrentLayer |

Autodesk Softimage v7.5