/
getActiveLayer

getActiveLayer

Description

Returns the name of the active layer of the active clip. An error is generated if there is no clip on the scene.

Functional area

NLE

Command syntax

Syntax

getActiveLayer

Arguments

None

Flags

None

Return value

string

The name of the active layer of the active clip

Examples

// Print the name of the active clip
string $clip = `getActiveClip`;
print $clip;
 
// Print the name of the active layer
string $layer = `getActiveLayer`;
print $layer;

Additional information

Related commands