Film kit command

timeline.place

Place Clip

Places project `item` on the timeline at `time` (ticks), `frame` or `seconds` on `track` (and `audioTrack`), from `sourceIn` for `duration`; `insert: true` pushes later clips right, false overwrites. `video`/`audio` choose streams. `track: "auto"` / `audioTrack: "auto"` put the picture / sound on the first track with room for it (a new track when none has) instead of overwriting, and answer the track chosen ("V2", "A3"). `snap` ("markers", "beats" or both) starts the clip on the nearest sequence marker or music beat within `toleranceFrames` (3). Answers the new clip ids (and `snapped`).

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of timeline.place
NameTypeRequiredDescription
audiobooleanno
audioTrackstring | integerno"A1"|id?
durationintegernoticks (254016000000 per second)
frameintegernoone of several alternative parameters
insertbooleanno
itemintegerno
secondsnumbernoone of several alternative parameters
snapanyno"markers"|"beats"|["markers","beats"]?
sourceInintegernoticks (254016000000 per second)
timeintegernoticks (254016000000 per second); one of several alternative parameters
timecodestringnothe time, as a timecode (one spelling of it)
toleranceFramesintegerno
trackstring | integerno"V1"|id|"A1" (sound only)?; sound only
videobooleanno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: audio, audioTrack, duration, frame, insert, item, seconds, snap, sourceIn, time, timecode, toleranceFrames, track, video. 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": {
    "audio": {
      "default": true,
      "type": "boolean"
    },
    "audioTrack": {
      "description": "\"A1\"|id?",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "duration": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "frame": {
      "description": "one of several alternative parameters",
      "type": "integer"
    },
    "insert": {
      "type": "boolean"
    },
    "item": {
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "seconds": {
      "description": "one of several alternative parameters",
      "type": "number"
    },
    "snap": {
      "description": "\"markers\"|\"beats\"|[\"markers\",\"beats\"]?"
    },
    "sourceIn": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "time": {
      "description": "ticks (254016000000 per second); one of several alternative parameters",
      "type": "integer"
    },
    "timecode": {
      "description": "the time, as a timecode (one spelling of it)",
      "type": "string"
    },
    "toleranceFrames": {
      "default": 3,
      "type": "integer"
    },
    "track": {
      "description": "\"V1\"|id|\"A1\" (sound only)?; sound only",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "video": {
      "default": true,
      "type": "boolean"
    }
  },
  "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.