set_pivot
Set a layer or peg's rotation and scale pivot without shifting it, using canvas coordinates or an auto anchor (bottom, center, top) before adding squash, stretch, or rotation keys.
Instructions
Set the rotation/scale pivot of a layer or peg without moving it (OpenToonz 'center'). x,y: canvas px. x='auto': from the layer's drawing bounds; anchor 'bottom' (feet - use for squash on the ground) | 'center' | 'top'. Do this BEFORE squash/stretch or rotation keys.
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": {
"scene": "<scene>",
"target": "<target>"
},
"name": "set_pivot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | auto | |
| y | No | ||
| scene | Yes | ||
| anchor | No | bottom | |
| target | Yes |