Motion kit command

comp.settings

Composition Settings

Changes a composition's settings: `name`, `width`/`height` (with `anchor` 0–8 for where content stays), `frameRate`, `duration`, `startTime`, `background`, shutter angle and phase, motion blur samples, renderer. `comp` defaults to the active one.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of comp.settings
NameTypeRequiredDescription
adaptiveSampleLimitintegerno16–256
anchorintegerno0 to 8; resize anchor, 4 = center
backgroundanyno
compinteger | stringno
durationnumberno
frameRatenumberno
heightnumberno
motionBlurSamplesintegerno
namestringno
pixelAspectnumberno
preserveFrameRatebooleannonested or in the render queue it shows only its own frames
preserveResolutionbooleannonested, it renders at full size
renderer"classic3D" | "advanced3D"no
shutterAnglenumberno
shutterPhasenumberno
startTimenumberno(s) | startTimecode?
startTimecodeanynoone of several alternative parameters
widthnumberno

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: adaptiveSampleLimit, anchor, background, comp, duration, frameRate, height, motionBlurSamples, name, pixelAspect, preserveFrameRate, preserveResolution, renderer, shutterAngle, shutterPhase, startTime, startTimecode, width. motion_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": {
    "adaptiveSampleLimit": {
      "description": "16–256",
      "type": "integer"
    },
    "anchor": {
      "description": "0 to 8; resize anchor, 4 = center",
      "type": "integer"
    },
    "background": {},
    "comp": {
      "oneOf": [
        {
          "description": "item id",
          "type": "integer"
        },
        {
          "description": "comp name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "duration": {
      "type": "number"
    },
    "frameRate": {
      "type": "number"
    },
    "height": {
      "type": "number"
    },
    "motionBlurSamples": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "pixelAspect": {
      "type": "number"
    },
    "preserveFrameRate": {
      "description": "nested or in the render queue it shows only its own frames",
      "type": "boolean"
    },
    "preserveResolution": {
      "description": "nested, it renders at full size",
      "type": "boolean"
    },
    "renderer": {
      "enum": [
        "classic3D",
        "advanced3D"
      ],
      "type": "string"
    },
    "shutterAngle": {
      "type": "number"
    },
    "shutterPhase": {
      "type": "number"
    },
    "startTime": {
      "description": "(s) | startTimecode?",
      "type": "number"
    },
    "startTimecode": {
      "description": "one of several alternative parameters"
    },
    "width": {
      "type": "number"
    }
  },
  "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.