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’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
clip | integer | no | |
frame | integer | no | |
seconds | number | no | |
time | integer | no | ticks (254016000000 per second) |
timecode | string | no | |
track | string | integer | no | "V1"|id? |
Call through film_run
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
{
"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.