Transform clip
set_clip_transform[write] Position, scale, rotate, crop or fit a visual clip; only passed fields change. ids applies one transform to several clips. Use to reframe after a new aspect ratio, make a picture-in-picture or punch in. Not for audio or compound clips, snapping to a frame edge (use align_clip) or movement over time (use set_keyframes). Returns the changed clips' rows (with handles) and counts. Related: align_clip, set_keyframes, set_export_settings.
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": {
"project_id": "<project_id>"
},
"name": "set_clip_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Frame-width % from centre (+ right). | |
| y | No | Frame-height % from centre (+ down). | |
| id | No | get_timeline handle. | |
| ids | No | More handles. | |
| cropB | No | Inset, 0–1. | |
| cropL | No | Inset, 0–1. | |
| cropR | No | Inset, 0–1. | |
| cropT | No | Inset, 0–1 of the clip. | |
| items | No | Many clips at once, max 60, each with this tool's fields. | |
| scale | No | Multiplier (1 = fitted size). | |
| fitMode | No | fill (default) covers the frame; fit shows it all. | |
| rotation | No | Degrees. | |
| project_id | Yes | The AskEditor project this acts on (from list_projects). |