Motion kit command

renderQueue.saveTemplate

Save Template

Save a template: from an item's settings (`item`/`index`, `module`), or the slot default, adjusted by `params` (the same keys as setRenderSettings / setOutputModule).

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of renderQueue.saveTemplate
NameTypeRequiredDescription
fromstringnotemplate to copy
indexintegernoa position counted from 0 (the first is 0); save from this item; one of several alternative parameters
itemintegernosave from this item; one of several alternative parameters
kind"renderSettings" | "outputModule"no
moduleintegerno
namestringno
paramsobjectno

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: from, index, item, kind, module, name, params. 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": {
    "from": {
      "description": "template to copy",
      "type": "string"
    },
    "index": {
      "description": "a position counted from 0 (the first is 0); save from this item; one of several alternative parameters",
      "type": "integer"
    },
    "item": {
      "description": "save from this item; one of several alternative parameters",
      "type": "integer"
    },
    "kind": {
      "enum": [
        "renderSettings",
        "outputModule"
      ],
      "type": "string"
    },
    "module": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "params": {
      "additionalProperties": true,
      "type": "object"
    }
  },
  "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.