Film kit command

caption.setTimes

Set Caption In/Out

Sets a caption's start and/or end, each as ticks (`startTime`), frames, seconds or timecode; default caption is the selected one.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of caption.setTimes
NameTypeRequiredDescription
captionintegerno
endFrameintegerno
endSecondsnumberno
endTimeintegernoticks (254016000000 per second)
endTimecodestringno
startFrameintegerno
startSecondsnumberno
startTimeintegernoticks (254016000000 per second)
startTimecodestringno

Call through film_run

text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "caption.setTimes" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: caption, endFrame, endSeconds, endTime, endTimecode, startFrame, startSeconds, startTime, startTimecode. film_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "caption": {
      "type": "integer"
    },
    "endFrame": {
      "type": "integer"
    },
    "endSeconds": {
      "type": "number"
    },
    "endTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "endTimecode": {
      "type": "string"
    },
    "startFrame": {
      "type": "integer"
    },
    "startSeconds": {
      "type": "number"
    },
    "startTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "startTimecode": {
      "type": "string"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.