layer_setTransform
Set a layer's translation, rotation, and scale at a specified animation frame, changing only the transform properties you provide.
Instructions
Set the transform (translation, rotation, scale) of a layer at a specific frame. All transform params are optional — only supplied values are changed.
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": {
"layerId": "<layerId>",
"frame": "<frame>"
},
"name": "layer_setTransform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | The frame number to set the keyframe at | |
| scaleX | No | Layer X scale | |
| scaleY | No | Layer Y scale | |
| transX | No | Layer X translation | |
| transY | No | Layer Y translation | |
| layerId | Yes | The numeric ID of the layer | |
| rotation | No | Layer rotation in radians |