duplicate-layer
Duplicate a layer in a composition by targeting it with its index or name. Optionally rename the copied layer.
Instructions
Duplicate a layer in a composition, optionally renaming the copy. Target the layer by layerIndex or layerName.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | No | Optional new name for the duplicated layer. | |
| compName | No | Composition name (or active comp if omitted). | |
| compIndex | No | 1-based comp index, if compName is omitted. | |
| layerName | No | Layer name to duplicate (alternative to layerIndex). | |
| layerIndex | No | 1-based layer index to duplicate. |