Set clip transform
set_clip_transformSet a video clip's position, scale, rotation, anchor, crop, opacity, anti-flicker, and blend mode in one call; only supplied values change, and keyframed properties are cleared to hold the new value.
Instructions
Set several Motion/Opacity values of one video clip in one call: position, scale (uniform) or scale_width + scale_height (non-uniform), rotation, anchor point, anti-flicker, crop, opacity and blend mode. Only the fields you pass change. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use set_clips_transform for the same change on several clips. Returns the clip's transform.
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": "set_clip_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Uniform scale in percent (100 = source pixels 1:1). Turns Uniform Scale on. | |
| units | No | Unit of x/y. "pixels" (default): sequence-frame pixels for position (0,0 = top-left of the frame), source-frame pixels for the anchor point. "normalized": 0-1 fractions of the same frame (0.5, 0.5 = centre). | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| opacity | No | Opacity in percent. | |
| crop_top | No | Crop from the top edge, percent of the source height. | |
| position | No | [x, y] where the clip's anchor point is placed, in `units` (default pixels of the sequence frame). | |
| rotation | No | Rotation in degrees, clockwise. | |
| crop_left | No | Crop from the left edge, percent of the source width. | |
| blend_mode | No | Blend mode name (see set_clip_blend_mode). | |
| 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. | |
| crop_right | No | Crop from the right edge, percent of the source width. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| crop_bottom | No | Crop from the bottom edge, percent of the source height. | |
| scale_width | No | Horizontal scale in percent. With scale_height, sets non-uniform scale (turns Uniform Scale off). | |
| 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). | |
| anchor_point | No | [x, y] anchor point, in `units` (default pixels of the clip's SOURCE frame; centre = half the source size). | |
| anti_flicker | No | Anti-flicker filter amount, 0-1. | |
| scale_height | No | Vertical scale in percent. With scale_width, sets non-uniform scale (turns Uniform Scale off). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |