Film kit command
clip.makeSubclip
Make Subclip
Creates a subclip project item from a master `item` or timeline `clip` between start and end (ticks or frames), default the item's In/Out; `restrictTrims` keeps edits inside that range. Answers the new item.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
clip | integer | no | |
end | integer | no | ticks (254016000000 per second) |
endFrame | integer | no | |
endSeconds | number | no | the end time, in seconds (one spelling of it) |
endTime | integer | no | the end time, in ticks (one spelling of it) |
endTimecode | string | no | the end time, as a timecode (one spelling of it) |
item | integer | no | |
name | string | no | |
restrictTrims | boolean | no | |
start | integer | no | ticks (254016000000 per second) |
startFrame | integer | no | |
startSeconds | number | no | the start time, in seconds (one spelling of it) |
startTime | integer | no | the start time, in ticks (one spelling of it) |
startTimecode | string | no | the start time, as a timecode (one spelling of it) |
Call through film_run
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "clip.makeSubclip" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clip, end, endFrame, endSeconds, endTime, endTimecode, item, name, restrictTrims, start, startFrame, startSeconds, startTime, startTimecode. 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"
]
},
"end": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"endFrame": {
"type": "integer"
},
"endSeconds": {
"description": "the end time, in seconds (one spelling of it)",
"type": "number"
},
"endTime": {
"description": "the end time, in ticks (one spelling of it)",
"type": "integer"
},
"endTimecode": {
"description": "the end time, as a timecode (one spelling of it)",
"type": "string"
},
"item": {
"type": "integer",
"x-khp-types": [
"Item"
]
},
"name": {
"type": "string"
},
"restrictTrims": {
"default": true,
"type": "boolean"
},
"start": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"startFrame": {
"type": "integer"
},
"startSeconds": {
"description": "the start time, in seconds (one spelling of it)",
"type": "number"
},
"startTime": {
"description": "the start time, in ticks (one spelling of it)",
"type": "integer"
},
"startTimecode": {
"description": "the start time, as a timecode (one spelling of it)",
"type": "string"
}
},
"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.