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
| Name | Type | Required | Description |
|---|---|---|---|
audio | boolean | no | |
audioTrack | string | integer | no | "A1"|id? |
duration | integer | no | ticks (254016000000 per second) |
frame | integer | no | one of several alternative parameters |
insert | boolean | no | |
item | integer | no | |
seconds | number | no | one of several alternative parameters |
snap | any | no | "markers"|"beats"|["markers","beats"]? |
sourceIn | integer | no | ticks (254016000000 per second) |
time | integer | no | ticks (254016000000 per second); one of several alternative parameters |
timecode | string | no | the time, as a timecode (one spelling of it) |
toleranceFrames | integer | no | |
track | string | integer | no | "V1"|id|"A1" (sound only)?; sound only |
video | boolean | no |
Call through film_run
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
{
"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.