Motion kit command
comp.info
Composition Info
Returns a composition's settings and layers: id, name, size, frame rate, duration (seconds), work area, background, preserve flags, and each layer's index, name, type, in/out points and switches. `comp` defaults to the active one.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
comp | integer | string | no |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "comp.info" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: comp. motion_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
background | number[] | no | |
duration | number | no | |
frameRate | number | no | |
guides | object[] | no | |
height | integer | no | |
id | integer | no | |
layers | object[] | no | |
name | string | no | |
preserveFrameRate | boolean | no | |
preserveResolution | boolean | no | |
switches | object | no | |
width | integer | no | |
workArea | number[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"background": {
"items": {
"type": "number"
},
"type": "array"
},
"duration": {
"type": "number"
},
"frameRate": {
"type": "number"
},
"guides": {
"items": {
"additionalProperties": true,
"properties": {
"orientation": {
"type": "string"
},
"position": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"height": {
"type": "integer"
},
"id": {
"type": "integer"
},
"layers": {
"items": {
"additionalProperties": true,
"properties": {
"blendMode": {
"type": "string"
},
"id": {
"type": "integer"
},
"in": {
"type": "number"
},
"index": {
"type": "integer"
},
"label": {
"type": "string"
},
"name": {
"type": "string"
},
"out": {
"type": "number"
},
"parent": {},
"start": {
"type": "number"
},
"stretch": {
"type": "number"
},
"switches": {
"additionalProperties": true,
"properties": {
"adjustment": {
"type": "boolean"
},
"audio": {
"type": "boolean"
},
"collapse": {
"type": "boolean"
},
"effects": {
"type": "boolean"
},
"frame_blend": {
"type": "string"
},
"guide": {
"type": "boolean"
},
"locked": {
"type": "boolean"
},
"motion_blur": {
"type": "boolean"
},
"quality": {
"type": "string"
},
"sampling": {
"type": "string"
},
"shy": {
"type": "boolean"
},
"solo": {
"type": "boolean"
},
"three_d": {
"type": "boolean"
},
"video": {
"type": "boolean"
}
},
"type": "object"
},
"trackMatte": {},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
},
"preserveFrameRate": {
"type": "boolean"
},
"preserveResolution": {
"type": "boolean"
},
"switches": {
"additionalProperties": true,
"properties": {
"draft3d": {
"type": "boolean"
},
"frameBlending": {
"type": "boolean"
},
"hideShy": {
"type": "boolean"
},
"motionBlur": {
"type": "boolean"
}
},
"type": "object"
},
"width": {
"type": "integer"
},
"workArea": {
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"comp": {
"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"
]
}
},
"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.