/
addLayer
addLayer
Description
Create a new layer in the active clip. An error is generated if there is no clip in the scene.
Functional area
NLE
Command syntax
Syntax
addLayer "layerName"
|
Arguments
Name | Type | Required | Comments |
---|---|---|---|
layerName
|
string | yes | The name of the layer to add |
Flags
None
Return value
void
Examples
// Print the name of the active clip string $clip = `getActiveClip`; print $clip; // Add new layer string $name = "new layer"; addLayer $name; // Print all layers string $layers []; $layers = `getLayers`; print $layers;
Additional info
Related commands
, multiple selections available,