Film kit command
caption.setTimes
Set Caption In/Out
Sets a caption's start and/or end, each as ticks (`startTime`), frames, seconds or timecode; default caption is the selected one.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
caption | integer | no | |
endFrame | integer | no | |
endSeconds | number | no | |
endTime | integer | no | ticks (254016000000 per second) |
endTimecode | string | no | |
startFrame | integer | no | |
startSeconds | number | no | |
startTime | integer | no | ticks (254016000000 per second) |
startTimecode | string | no |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "caption.setTimes" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: caption, endFrame, endSeconds, endTime, endTimecode, 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
json
{
"additionalProperties": false,
"properties": {
"caption": {
"type": "integer"
},
"endFrame": {
"type": "integer"
},
"endSeconds": {
"type": "number"
},
"endTime": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"endTimecode": {
"type": "string"
},
"startFrame": {
"type": "integer"
},
"startSeconds": {
"type": "number"
},
"startTime": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"startTimecode": {
"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.