Ir para o conteúdo

Comandos

item.set_transition

Sets or removes the transition on one edge of a visual item.

Última atualização:

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

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#

ArgumentTypeRequiredDescription
durationstringnoLength of the transition, at least 1 frame; default 0.5s.
edgein, outyesThe edge: in or out.
item_idstringyesA clip, text, caption or shape item.
kindfade, slide_left, slide_right, slide_up, slide_down, nullyesfade, 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):

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