Film kit command

marker.addChapter

Add Chapter Marker

Adds a chapter marker (exported as a chapter in MP4/DVD) at the playhead or `time` (or `frame`, `seconds`, `timecode`); named Chapter n by default.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of marker.addChapter
NameTypeRequiredDescription
colorstringnomarker colour (Red, Orange, Yellow, Green, Cyan, Blue, Purple) or label name (Violet, Iris, …)?
commentstringno
frameintegerno
namestringno
secondsnumberno
timeintegernoticks (254016000000 per second)
timecodestringno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: color, comment, frame, name, seconds, time, timecode. 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": {
    "color": {
      "description": "marker colour (Red, Orange, Yellow, Green, Cyan, Blue, Purple) or label name (Violet, Iris, …)?",
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "frame": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "seconds": {
      "type": "number"
    },
    "time": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "timecode": {
      "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.