Film kit command
graphics.setRoll
Roll/Crawl Options
Makes a graphic clip roll (credits) or crawl left/right with start/end off screen and preroll, ease and postroll frames; `mode: off` stops it.
- 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 | |
easeIn | integer | no | ticks (254016000000 per second) |
easeInFrames | integer | no | |
easeInSeconds | number | no | |
easeOut | integer | no | ticks (254016000000 per second) |
easeOutFrames | integer | no | |
easeOutSeconds | number | no | |
endOffScreen | boolean | no | |
mode | "off" | "roll" | "crawlLeft" | "crawlRight" | no | |
postroll | integer | no | ticks (254016000000 per second) |
postrollFrames | integer | no | |
postrollSeconds | number | no | |
preroll | integer | no | ticks (254016000000 per second) |
prerollFrames | integer | no | |
prerollSeconds | number | no | |
startOffScreen | boolean | no |
Call through film_run
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "graphics.setRoll" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clip, easeIn, easeInFrames, easeInSeconds, easeOut, easeOutFrames, easeOutSeconds, endOffScreen, mode, postroll, postrollFrames, postrollSeconds, preroll, prerollFrames, prerollSeconds, startOffScreen. 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"
]
},
"easeIn": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"easeInFrames": {
"type": "integer"
},
"easeInSeconds": {
"type": "number"
},
"easeOut": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"easeOutFrames": {
"type": "integer"
},
"easeOutSeconds": {
"type": "number"
},
"endOffScreen": {
"type": "boolean"
},
"mode": {
"enum": [
"off",
"roll",
"crawlLeft",
"crawlRight"
],
"type": "string"
},
"postroll": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"postrollFrames": {
"type": "integer"
},
"postrollSeconds": {
"type": "number"
},
"preroll": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"prerollFrames": {
"type": "integer"
},
"prerollSeconds": {
"type": "number"
},
"startOffScreen": {
"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.