Ir para o conteúdo

Comandos

text.apply_preset

Animates one edge of a visual item with a named preset.

Última atualização:

Esta referência é gerada a partir do programa e está em inglês.

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#

ArgumentTypeRequiredDescription
durationstringnoA length, at most the item's duration. Default "0.4s".
edgein, outyesin or out.
item_idstringyesA clip, text, caption or shape item.
presetfade_up, fade_down, pop, zoom_in, slide_left, slide_rightyesThe 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):

JSON
{
  "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.