center_anchor
Move a layer’s anchor point to a named position—center, edge, or corner—while compensating position and keyframes so the layer doesn’t jump.
Instructions
Move anchor point to a named position on the layer. Compensates position (and all keyframes) so the layer doesn't jump. anchor: "center" (default), "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right". Use "bottom" for squash-and-stretch on bouncing/landing objects.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "center_anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| anchor | No | center | |
| layers | No | One or many layers (each: name, 1-based index, or { id: N }). If omitted, uses currently selected layers. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. |