Create a new layer in the active clip
An error is generated if there is no clip in the scene.
NLE
addLayer "layerName" |
Name | Type | Required | Comments |
---|---|---|---|
layerName | string | yes | The name of the layer to add |
None
void
// 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; |