Motion kit command

playback.settings.get

Preview Settings

Returns the preview settings for a preview `shortcut` (spacebar by default): frame rate, skip, resolution, range, loop, audio, and the planned start, end and step for the active comp.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of playback.settings.get
NameTypeRequiredDescription
shortcut"spacebar" | "shiftSpacebar" | "numpad0" | "shiftNumpad0" | "altNumpad0"nodefault: the one shown in the Preview panel

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: shortcut. motion_run answers the step’s result in completed[i].result.

Result

Result of playback.settings.get
NameTypeRequiredDescription
cacheBeforePlaybackbooleanno
currentstringno
customResolutionintegerno
frameRateanyno
fullScreenbooleanno
includeAudiobooleanno
includeLayerControlsbooleanno
includeOverlaysbooleanno
includeVideobooleanno
loopbooleanno
moveTimeToPreviewTimebooleanno
planobjectno
playCachedFramesbooleanno
playFromstringno
postRollnumberno
preRollnumberno
rangestringno
resolutionstringno
shortcutstringno
skipintegerno
Result JSON Schema
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": {
    "shortcut": {
      "description": "default: the one shown in the Preview panel",
      "enum": [
        "spacebar",
        "shiftSpacebar",
        "numpad0",
        "shiftNumpad0",
        "altNumpad0"
      ],
      "type": "string"
    }
  },
  "returns": "options + plan {start, end, first, step, fps}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.