Change a transition's duration
set_transition_durationAdjust the duration of an existing Premiere Pro transition while preserving its cut position, alignment, and Effect Controls settings; falls back to removing and re-adding it if Premiere refuses.
Instructions
Change the duration of an existing transition, chosen by transition_index or time. It stays on the same cut or clip edge and keeps its alignment (or takes the alignment given); its Effect Controls settings are kept. The new start/end are written directly; if Premiere refuses them, the transition is removed and re-added with the same name (method is then "removed and re-added" and custom settings are lost). Returns {before, after, method}.
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": {
"track_type": "<track_type>",
"track_index": "<track_index>",
"duration": "<duration>"
},
"name": "set_transition_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Used when transition_index is not given: a sequence time in seconds inside the transition. | |
| duration | Yes | New duration in seconds, up to 60. Snapped to whole frames. | |
| alignment | No | Where the transition sits on a cut: "center" (default; half before, half after the cut), "start_at_cut" (begins at the cut and plays over the incoming clip) or "end_at_cut" (ends at the cut and plays over the outgoing clip). At a clip edge with no adjacent clip the transition is single-sided and lies inside the clip whatever the alignment. | |
| track_type | Yes | Track type: "video" or "audio". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | Yes | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| transition_index | No | 0-based index of the transition on the track, in time order (from list_track_transitions). |