Sets a fade or a slide on the in or out edge, 0.5 seconds long unless duration is given; kind null removes the transition. The two transitions together cannot be longer than the item.
Arguments#
| Argument | Type | Required | Description |
|---|---|---|---|
duration | string | no | Length of the transition, at least 1 frame; default 0.5s. |
edge | in, out | yes | The edge: in or out. |
item_id | string | yes | A clip, text, caption or shape item. |
kind | fade, slide_left, slide_right, slide_up, slide_down, null | yes | fade, slide_left, slide_right, slide_up, slide_down, or null to remove. |
Example#
As one operation of an edit batch (the edit tool of MCP, vukem-video edit --ops, or POST /api/v1/projects/{id}/edit):
{
"op": "item.set_transition",
"args": {
"edge": "in",
"item_id": "itm_m1n2p3q4r5",
"kind": "fade"
}
}Errors#
E_VALIDATION, E_INVALID_TIME, E_NOT_FOUND, E_TYPE_MISMATCH, E_INVALID_STATE
Scope and phase#
Scope edit, phase alpha. Run vukem-video command:help item.set_transition for the same description from the binary.