reorder-layer
Change the stacking order of any layer in an After Effects composition by moving it to the top, bottom, or relative to another layer.
Instructions
Change a layer's stacking order (z-order) within its composition. Provide exactly one of toPosition, before*, or after* to say where it should move.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compName | No | Composition name (or active comp if omitted). | |
| compIndex | No | 1-based comp index, if compName is omitted. | |
| layerName | No | Name of the layer to move (alternative to layerIndex). | |
| layerIndex | No | 1-based index of the layer to move. | |
| toPosition | No | Move to the very top (front) or bottom (back) of the stacking order. | |
| afterLayerName | No | Same as afterLayerIndex, by name. | |
| afterLayerIndex | No | Move directly below (behind) this layer. | |
| beforeLayerName | No | Same as beforeLayerIndex, by name. | |
| beforeLayerIndex | No | Move directly above (in front of) this layer. |