Film kit command
sequence.new
Sequence
Creates a sequence `name` (default 1920×1080, 23.976 fps, 48 kHz, 3 video and 3 audio tracks, or from `item`'s format) and opens it. Answers the new sequence id.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
audio | integer | no | |
fps | number | no | |
fromItem | integer | no | a project item id |
height | integer | no | |
mix | "Stereo" | "Mono" | "5.1" | "Adaptive" | no | |
name | string | no | |
sampleRate | integer | no | |
trackType | "Standard" | "Mono" | "5.1" | "Adaptive" | no | |
video | integer | no | |
width | integer | no |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "sequence.new" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: audio, fps, fromItem, height, mix, name, sampleRate, trackType, video, width. 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": 3,
"type": "integer"
},
"fps": {
"default": 23.976,
"type": "number"
},
"fromItem": {
"description": "a project item id",
"type": "integer",
"x-khp-types": [
"Item"
]
},
"height": {
"default": 1080,
"type": "integer"
},
"mix": {
"enum": [
"Stereo",
"Mono",
"5.1",
"Adaptive"
],
"type": "string"
},
"name": {
"type": "string"
},
"sampleRate": {
"default": 48000,
"type": "integer"
},
"trackType": {
"enum": [
"Standard",
"Mono",
"5.1",
"Adaptive"
],
"type": "string"
},
"video": {
"default": 3,
"type": "integer"
},
"width": {
"default": 1920,
"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.