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’s on fills

Parameters

Parameters of graphics.setRoll
NameTypeRequiredDescription
clipintegerno
easeInintegernoticks (254016000000 per second)
easeInFramesintegerno
easeInSecondsnumberno
easeOutintegernoticks (254016000000 per second)
easeOutFramesintegerno
easeOutSecondsnumberno
endOffScreenbooleanno
mode"off" | "roll" | "crawlLeft" | "crawlRight"no
postrollintegernoticks (254016000000 per second)
postrollFramesintegerno
postrollSecondsnumberno
prerollintegernoticks (254016000000 per second)
prerollFramesintegerno
prerollSecondsnumberno
startOffScreenbooleanno

Call through film_run

text
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

json
{
  "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.