Film kit command

timeline.razor

Razor

Cuts clips at `time` (ticks), `seconds`, `frame` or `timecode` (default playhead): only `clip` (and linked partners) when given, else every clip on `track`, else all unlocked tracks. Answers `cuts`, the new clip ids (`clips`: the right-hand piece of each cut; the cut clip keeps its id for the left piece), and `pieces` ({left, right} for each cut).

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes
Acts on
clip (one id), which a run step’s on fills

Parameters

Parameters of timeline.razor
NameTypeRequiredDescription
clipintegerno
frameintegerno
secondsnumberno
timeintegernoticks (254016000000 per second)
timecodestringno
trackstring | integerno"V1"|id?

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: clip, frame, seconds, time, timecode, track. 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": {
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "frame": {
      "type": "integer"
    },
    "seconds": {
      "type": "number"
    },
    "time": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "timecode": {
      "type": "string"
    },
    "track": {
      "description": "\"V1\"|id?",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    }
  },
  "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.