Transition¶
A transition instance on a sequence track.
ExtendScript has no transitions API; this mirrors the stored XML
(VideoTransitionTrackItem), which is also what UXP's
getTrackItems(TrackItemType.TRANSITION) exposes.
Which of the two clips it joins are real decides how it is aligned:
| incoming | outgoing | alignment |
|---|---|---|
| yes | no | at a clip's head, entirely after the cut |
| no | yes | at a clip's tail, entirely before the cut |
| yes | yes | on a cut, straddling it |
Source code in src/py_premiere/models/transition.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
Attributes¶
border_color
property
¶
The border colour, or None when the transition has no border.
Stored as a comma-separated RGB triple.
border_width
property
¶
The border drawn along the wipe edge. Read-only.
0 for transitions that have no border (a dissolve stores nothing).
cut_point
property
¶
The edit point this transition covers. Read-only.
start plus cut_point_offset.
cut_point_offset
property
¶
How much of the transition lies before the cut. Read-only.
The stored Alignment is a tick offset, not an enum: a head
transition stores 0, a tail one stores its whole duration, and one
on a cut stores however much of itself falls before it (Premiere
clamps that to the handles the two clips actually have, so it is
rarely exactly half).
direction
property
¶
The direction a directional transition runs in. Read-only.
The stored code, which varies per transition - Band Wipe writes 10
for its default. Left raw because there is no vocabulary to map it to:
no scripting API exposes the field at all.
has_incoming_clip
property
¶
Whether a clip starts under this transition. Read-only.
has_outgoing_clip
property
¶
Whether a clip ends under this transition. Read-only.
is_reversed
property
¶
Whether the transition plays in its reverse direction. Read-only.
start
property
¶
The start on the sequence timeline. Read-only.
Premiere elides a zero start, like clip track items.