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
| Name | Type | Required | Description |
|---|---|---|---|
adaptiveSampleLimit | integer | no | 16–256 |
anchor | integer | no | 0 to 8; resize anchor, 4 = center |
background | any | no | |
comp | integer | string | no | |
duration | number | no | |
frameRate | number | no | |
height | number | no | |
motionBlurSamples | integer | no | |
name | string | no | |
pixelAspect | number | no | |
preserveFrameRate | boolean | no | nested or in the render queue it shows only its own frames |
preserveResolution | boolean | no | nested, it renders at full size |
renderer | "classic3D" | "advanced3D" | no | |
shutterAngle | number | no | |
shutterPhase | number | no | |
startTime | number | no | (s) | startTimecode? |
startTimecode | any | no | one of several alternative parameters |
width | number | no |
Call through motion_run
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
{
"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.