Remove indicated layer from the active clip. The error will be generated if there is no clip on the scene.
NLE
removeLayer "layerName" |
Name | Type | Required | Comments |
---|---|---|---|
layerName | string | yes | The name of the layer to remove |
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; // Remove layer removeLayer $name; // Print all layers $layers = `getLayers`; print $layers; |