Ir para o conteúdo

Comandos

caption.edit_word

Changes the text of one word of a caption, or removes the word.

Última atualização:

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

Replaces the text of the word at index; timing is untouched. An empty text removes the word and leaves a gap. The only word of a caption cannot be removed.

Arguments#

ArgumentTypeRequiredDescription
indexintegeryes0-based index of the word. min 0
item_idstringyesA caption.
textstringyesThe new text, 0 to 80 characters, no whitespace; empty removes.

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": "caption.edit_word",
  "args": {
    "index": 3,
    "item_id": "itm_s6t7v8w9x0",
    "text": "editor"
  }
}

Errors#

E_VALIDATION, E_NOT_FOUND, E_TYPE_MISMATCH, E_INVALID_STATE

Scope and phase#

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