Set clip Scale to Frame Size
set_clip_scale_to_frame_sizeToggle a video clip's timeline Scale to Frame Size setting on or off so a 4K clip fits an HD frame at 100%. Leaves Motion Scale unchanged; video clips only.
Instructions
Turn the timeline option Scale to Frame Size on or off for a video clip. On resamples the clip to the sequence frame size (a 4K clip fills an HD frame at Scale 100). It does not change the Motion effect's Scale value (use set_clip_scale or fit_clip_to_frame for that). Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns scale_to_frame_size as read back.
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": {
"enabled": "<enabled>"
},
"name": "set_clip_scale_to_frame_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| enabled | Yes | true = scale the clip to the sequence frame size, false = original pixel size. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |