---
title: "playback.settings.set: Change Preview Settings — Motion kit command — Kition"
description: "Changes the Preview panel settings of a shortcut (`shortcut`, or `current`): range, frame rate, resolution, loop, whether video, audio and overlays play, pre- and post-roll, frames skipped; `reset: true` restores the defaults."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/playback.settings.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/playback.settings.set](https://developer.kition.ai/docs/kits/motion/commands/playback.settings.set)

# playback.settings.set

**Change Preview Settings.** Changes the Preview panel settings of a shortcut (`shortcut`, or `current`): range, frame rate, resolution, loop, whether video, audio and overlays play, pre- and post-roll, frames skipped; `reset: true` restores the defaults.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `cacheBeforePlayback` | `boolean` | no |  |
| `comp` | `integer \| string` | no | read by the command beside its listed parameters |
| `current` | `string` | no | shortcut shown in the panel |
| `customResolution` | `integer` | no |  |
| `frameRate` | `any` | no | fps\|"auto" |
| `fullScreen` | `boolean` | no |  |
| `includeAudio` | `boolean` | no |  |
| `includeLayerControls` | `boolean` | no |  |
| `includeOverlays` | `boolean` | no |  |
| `includeVideo` | `boolean` | no |  |
| `layer` | `integer \| string` | no | read by the command beside its listed parameters |
| `loop` | `boolean` | no |  |
| `moveTimeToPreviewTime` | `boolean` | no |  |
| `playCachedFrames` | `boolean` | no |  |
| `playFrom` | `"rangeStart" \| "currentTime"` | no |  |
| `postRoll` | `number` | no | seconds |
| `preRoll` | `number` | no | seconds |
| `range` | `"workArea" \| "workAreaExtended" \| "entireDuration" \| "aroundCurrentTime"` | no |  |
| `reset` | `boolean` | no |  |
| `resolution` | `"auto" \| "full" \| "half" \| "third" \| "quarter" \| "custom"` | no |  |
| `shortcut` | `string` | no |  |
| `skip` | `integer` | no | frames skipped between previewed frames, 0 to 99 |
| `tracker` | `integer \| string` | no | read by the command beside its listed parameters |
| `values` | `object` | no |  |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "playback.settings.set" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `cacheBeforePlayback`, `comp`, `current`, `customResolution`, `frameRate`, `fullScreen`, `includeAudio`, `includeLayerControls`, `includeOverlays`, `includeVideo`, `layer`, `loop`, `moveTimeToPreviewTime`, `playCachedFrames`, `playFrom`, `postRoll`, `preRoll`, `range`, `reset`, `resolution`, `shortcut`, `skip`, `tracker`, `values`. motion_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `cacheBeforePlayback` | `boolean` | no |  |
| `current` | `string` | no |  |
| `customResolution` | `integer` | no |  |
| `frameRate` | `any` | no |  |
| `fullScreen` | `boolean` | no |  |
| `includeAudio` | `boolean` | no |  |
| `includeLayerControls` | `boolean` | no |  |
| `includeOverlays` | `boolean` | no |  |
| `includeVideo` | `boolean` | no |  |
| `loop` | `boolean` | no |  |
| `moveTimeToPreviewTime` | `boolean` | no |  |
| `plan` | `object` | no |  |
| `playCachedFrames` | `boolean` | no |  |
| `playFrom` | `string` | no |  |
| `postRoll` | `number` | no |  |
| `preRoll` | `number` | no |  |
| `range` | `string` | no |  |
| `resolution` | `string` | no |  |
| `shortcut` | `string` | no |  |
| `skip` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "cacheBeforePlayback": {
      "type": "boolean"
    },
    "current": {
      "type": "string"
    },
    "customResolution": {
      "type": "integer"
    },
    "frameRate": {},
    "fullScreen": {
      "type": "boolean"
    },
    "includeAudio": {
      "type": "boolean"
    },
    "includeLayerControls": {
      "type": "boolean"
    },
    "includeOverlays": {
      "type": "boolean"
    },
    "includeVideo": {
      "type": "boolean"
    },
    "loop": {
      "type": "boolean"
    },
    "moveTimeToPreviewTime": {
      "type": "boolean"
    },
    "plan": {
      "additionalProperties": true,
      "properties": {
        "end": {
          "type": "integer"
        },
        "first": {
          "type": "integer"
        },
        "fps": {
          "type": "number"
        },
        "start": {
          "type": "integer"
        },
        "step": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "playCachedFrames": {
      "type": "boolean"
    },
    "playFrom": {
      "type": "string"
    },
    "postRoll": {
      "type": "number"
    },
    "preRoll": {
      "type": "number"
    },
    "range": {
      "type": "string"
    },
    "resolution": {
      "type": "string"
    },
    "shortcut": {
      "type": "string"
    },
    "skip": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "cacheBeforePlayback": {
      "type": "boolean"
    },
    "comp": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "description": "comp's item id as motion_inspect lists it",
          "type": "integer"
        },
        {
          "description": "the item id as receipts print it (\"1\"), or the comp's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "current": {
      "description": "shortcut shown in the panel",
      "type": "string"
    },
    "customResolution": {
      "type": "integer"
    },
    "frameRate": {
      "description": "fps|\"auto\""
    },
    "fullScreen": {
      "type": "boolean"
    },
    "includeAudio": {
      "type": "boolean"
    },
    "includeLayerControls": {
      "type": "boolean"
    },
    "includeOverlays": {
      "type": "boolean"
    },
    "includeVideo": {
      "type": "boolean"
    },
    "layer": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
          "type": "integer"
        },
        {
          "description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "loop": {
      "type": "boolean"
    },
    "moveTimeToPreviewTime": {
      "type": "boolean"
    },
    "playCachedFrames": {
      "type": "boolean"
    },
    "playFrom": {
      "enum": [
        "rangeStart",
        "currentTime"
      ],
      "type": "string"
    },
    "postRoll": {
      "description": "seconds",
      "type": "number"
    },
    "preRoll": {
      "description": "seconds",
      "type": "number"
    },
    "range": {
      "enum": [
        "workArea",
        "workAreaExtended",
        "entireDuration",
        "aroundCurrentTime"
      ],
      "type": "string"
    },
    "reset": {
      "type": "boolean"
    },
    "resolution": {
      "enum": [
        "auto",
        "full",
        "half",
        "third",
        "quarter",
        "custom"
      ],
      "type": "string"
    },
    "shortcut": {
      "type": "string"
    },
    "skip": {
      "description": "frames skipped between previewed frames, 0 to 99",
      "type": "integer"
    },
    "tracker": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "values": {
      "additionalProperties": true,
      "type": "object"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
