center-layers
Center a single layer, selected layers, or all layers in an After Effects composition. Specify the composition and optionally target a layer by index or name.
Instructions
Center one layer, selected layers, or all layers in a composition.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"compIndex": "<compIndex>"
},
"name": "center-layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compIndex | Yes | 1-based composition index. | |
| layerIndex | No | Target layer index when centering a single layer. | |
| layerName | No | Target layer name when centering a single layer. | |
| selectedOnly | No | Center only selected layers in the composition. | |
| allLayers | No | Center all layers in the composition. |