---
title: "graphics.setRoll: Roll/Crawl Options — Film kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/film/commands/graphics.setRoll"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/graphics.setRoll](https://developer.kition.ai/docs/kits/film/commands/graphics.setRoll)

# 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); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes
- Acts on: `clip` (one id), which a run step’s `on` fills

## 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

```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/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
