Duplicate, delete, reorder or precompose layers
ae_layer_opPerform structural layer operations in After Effects: duplicate, delete, move, precompose, or split layers at the current time.
Instructions
Structural operations on layers: duplicate, delete, move in the stack, precompose a set of layers into a new comp, or split at the current time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| comp | No | Composition name, project item id, or index. Omit for the active comp. | |
| name | No | For 'precompose': the new comp's name. | |
| layer | No | Target layer. For 'precompose', use `layers` instead. | |
| layers | No | For 'precompose' or bulk delete: the layers to act on. | |
| toIndex | No | For 'move': the new 1-based index. | |
| moveAttributes | No | For 'precompose': move all attributes into the new comp. Default: true. |