Ir para o conteúdo

Comandos

item.duplicate

Copies an item to another position, optionally on another track.

Última atualização:

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

Adds a copy of the item at start, on the same track or another track of the same kind. Keyframes, words and the name are copied; the slot mark is not. It fails when the copy would overlap an item of the target track.

Arguments#

ArgumentTypeRequiredDescription
item_idstringyesThe item to copy.
new_idstringnoThe id of the copy.
startstringyesAbsolute start of the copy.
track_idstringnoThe track of the copy; default the source's track.

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.duplicate",
  "args": {
    "item_id": "itm_m1n2p3q4r5",
    "new_id": "itm_s6t7v8w9x0",
    "start": "3s"
  }
}

Errors#

E_VALIDATION, E_INVALID_TIME, E_NOT_FOUND, E_TYPE_MISMATCH, E_ID_EXISTS, E_LIMIT, E_OVERLAP

Scope and phase#

Scope edit, phase alpha. Run vukem-video command:help item.duplicate for the same description from the binary.