Film kit command

marker.add

Add Marker

Adds a marker at the playhead or `time` (ticks; or `frame`, `timecode`, or `seconds`, on the frame that shows that time) with `name`, `comment`, `color` (a marker colour: Red, Orange, Yellow, Green, Cyan, Blue, Purple, or a label name; it reads back as the marker colour, Red for Rose; an unknown colour is refused) and optional `durationFrames` or `durationSeconds` (a range marker), on the sequence or, with target "source", the Source monitor clip. Answers the marker id.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of marker.add
NameTypeRequiredDescription
colorstringnomarker colour (Red, Orange, Yellow, Green, Cyan, Blue, Purple) or label name (Violet, Iris, …)?
commentstringno
durationFramesintegerno
durationSecondsnumberno
frameintegerno
namestringno
secondsnumberno
target"program" | "source"no
timeintegernoticks (254016000000 per second)
timecodestringno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: color, comment, durationFrames, durationSeconds, frame, name, seconds, target, 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"
    },
    "durationFrames": {
      "type": "integer"
    },
    "durationSeconds": {
      "type": "number"
    },
    "frame": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "seconds": {
      "type": "number"
    },
    "target": {
      "enum": [
        "program",
        "source"
      ],
      "type": "string"
    },
    "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.