Motion kit command
renderQueue.add
Add to Render Queue
Adds `comp` to the Render Queue with output `format` (h264, hevc, av1, prores, webm, png/jpeg/tiff/exr sequences, gif, wav, aiff), `output` path, `template`, `resolution` and `quality`. Start it with renderQueue.render.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
audio | "auto" | "on" | "off" | no | |
audioBitrate | number | no | |
audioChannels | number | string | no | |
audioFormat | string | no | |
bitrate | number | no | kbps |
channels | "rgb" | "rgba" | "alpha" | no | |
color | string | no | |
colorDepth | any | no | |
comp | integer | string | no | id|name |
crop | boolean | no | |
duration | number | no | s |
effects | any | no | |
end | number | no | s |
fieldRender | any | no | |
format | "h264" | "hevc" | "av1" | "prores" | "webm" | "png" | "jpeg" | "tiff" | "exr" | "gif" | "wav" | "aiff" | no | |
frameBlending | any | no | |
frameRate | any | no | fps|null |
guideLayers | any | no | |
includeProjectLink | boolean | no | |
item | integer | no | read by the command beside its listed parameters |
keyframeInterval | integer | no | |
layer | integer | string | no | read by the command beside its listed parameters |
layers | any[] | no | read by the command beside its listed parameters |
level | number | no | |
log | "errorsOnly" | "plusSettings" | "plusPerFrameInfo" | no | |
loop | boolean | no | values as in setRenderSettings / setOutputModule |
motionBlur | any | no | |
opusApplication | string | no | |
output | string | no | path|template |
profile | string | no | |
proresProfile | string | no | |
proxyUse | string | no | |
pulldown | any | no | |
quality | any | no | best|draft|1-100 (jpeg, webm); jpeg, webm |
rateControl | string | no | |
resize | object | no | |
resolution | number | no | full|half|third|quarter|scale |
sampleRate | integer | no | |
skipExisting | boolean | no | |
solo | any | no | |
start | number | no | s |
storageOverflow | boolean | no | |
template | string | no | Render Settings template |
timeSpan | "workArea" | "comp" | "custom" | no | |
webmBitrate | boolean | no | |
webmCodec | string | no |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "renderQueue.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: audio, audioBitrate, audioChannels, audioFormat, bitrate, channels, color, colorDepth, comp, crop, duration, effects, end, fieldRender, format, frameBlending, frameRate, guideLayers, includeProjectLink, item, keyframeInterval, layer, layers, level, log, loop, motionBlur, opusApplication, output, profile, proresProfile, proxyUse, pulldown, quality, rateControl, resize, resolution, sampleRate, skipExisting, solo, start, storageOverflow, template, timeSpan, webmBitrate, webmCodec. 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": {
"audio": {
"enum": [
"auto",
"on",
"off"
],
"type": "string"
},
"audioBitrate": {
"type": "number"
},
"audioChannels": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"audioFormat": {
"type": "string"
},
"bitrate": {
"description": "kbps",
"type": "number"
},
"channels": {
"enum": [
"rgb",
"rgba",
"alpha"
],
"type": "string"
},
"color": {
"type": "string"
},
"colorDepth": {},
"comp": {
"description": "id|name",
"oneOf": [
{
"description": "item id",
"type": "integer"
},
{
"description": "comp name",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"crop": {
"type": "boolean"
},
"duration": {
"description": "s",
"type": "number"
},
"effects": {},
"end": {
"description": "s",
"type": "number"
},
"fieldRender": {},
"format": {
"enum": [
"h264",
"hevc",
"av1",
"prores",
"webm",
"png",
"jpeg",
"tiff",
"exr",
"gif",
"wav",
"aiff"
],
"type": "string"
},
"frameBlending": {},
"frameRate": {
"description": "fps|null"
},
"guideLayers": {},
"includeProjectLink": {
"type": "boolean"
},
"item": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"keyframeInterval": {
"type": "integer"
},
"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"
}
]
},
"layers": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"level": {
"type": "number"
},
"log": {
"enum": [
"errorsOnly",
"plusSettings",
"plusPerFrameInfo"
],
"type": "string"
},
"loop": {
"description": "values as in setRenderSettings / setOutputModule",
"type": "boolean"
},
"motionBlur": {},
"opusApplication": {
"type": "string"
},
"output": {
"description": "path|template",
"type": "string"
},
"profile": {
"type": "string"
},
"proresProfile": {
"type": "string"
},
"proxyUse": {
"type": "string"
},
"pulldown": {},
"quality": {
"description": "best|draft|1-100 (jpeg, webm); jpeg, webm"
},
"rateControl": {
"type": "string"
},
"resize": {
"additionalProperties": true,
"type": "object"
},
"resolution": {
"description": "full|half|third|quarter|scale",
"type": "number"
},
"sampleRate": {
"type": "integer"
},
"skipExisting": {
"type": "boolean"
},
"solo": {},
"start": {
"description": "s",
"type": "number"
},
"storageOverflow": {
"type": "boolean"
},
"template": {
"description": "Render Settings template",
"type": "string"
},
"timeSpan": {
"enum": [
"workArea",
"comp",
"custom"
],
"type": "string"
},
"webmBitrate": {
"type": "boolean"
},
"webmCodec": {
"type": "string"
}
},
"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.