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

Parameters of renderQueue.add
NameTypeRequiredDescription
audio"auto" | "on" | "off"no
audioBitratenumberno
audioChannelsnumber | stringno
audioFormatstringno
bitratenumbernokbps
channels"rgb" | "rgba" | "alpha"no
colorstringno
colorDepthanyno
compinteger | stringnoid|name
cropbooleanno
durationnumbernos
effectsanyno
endnumbernos
fieldRenderanyno
format"h264" | "hevc" | "av1" | "prores" | "webm" | "png" | "jpeg" | "tiff" | "exr" | "gif" | "wav" | "aiff"no
frameBlendinganyno
frameRateanynofps|null
guideLayersanyno
includeProjectLinkbooleanno
itemintegernoread by the command beside its listed parameters
keyframeIntervalintegerno
layerinteger | stringnoread by the command beside its listed parameters
layersany[]noread by the command beside its listed parameters
levelnumberno
log"errorsOnly" | "plusSettings" | "plusPerFrameInfo"no
loopbooleannovalues as in setRenderSettings / setOutputModule
motionBluranyno
opusApplicationstringno
outputstringnopath|template
profilestringno
proresProfilestringno
proxyUsestringno
pulldownanyno
qualityanynobest|draft|1-100 (jpeg, webm); jpeg, webm
rateControlstringno
resizeobjectno
resolutionnumbernofull|half|third|quarter|scale
sampleRateintegerno
skipExistingbooleanno
soloanyno
startnumbernos
storageOverflowbooleanno
templatestringnoRender Settings template
timeSpan"workArea" | "comp" | "custom"no
webmBitratebooleanno
webmCodecstringno

Call through motion_run

text
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

json
{
  "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.