Writes the keyframes (or, for slide_left and slide_right, the transition) of the preset on the in or out edge, 0.4 seconds long unless duration is given. Keyframes of the same properties inside that edge are replaced; the rest of the animation is kept.
Arguments#
| Argument | Type | Required | Description |
|---|---|---|---|
duration | string | no | A length, at most the item's duration. Default "0.4s". |
edge | in, out | yes | in or out. |
item_id | string | yes | A clip, text, caption or shape item. |
preset | fade_up, fade_down, pop, zoom_in, slide_left, slide_right | yes | The animation. |
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": "text.apply_preset",
"args": {
"edge": "in",
"item_id": "itm_s6t7v8w9x0",
"preset": "fade_up"
}
}Errors#
E_VALIDATION, E_INVALID_TIME, E_NOT_FOUND, E_TYPE_MISMATCH, E_INVALID_STATE, E_LIMIT
Scope and phase#
Scope edit, phase alpha. Run vukem-video command:help text.apply_preset for the same description from the binary.