Motion kit command

project.setLabel

Item Label

Sets the label colour of project `items` (default selected): `label` a colour name or index 0–16.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of project.setLabel
NameTypeRequiredDescription
itemintegernoread by the command beside its listed parameters
itemsinteger[]no
labelstringnoname|index

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: item, items, label. 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": {
    "item": {
      "description": "read by the command beside its listed parameters",
      "type": "integer",
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "items": {
      "items": {
        "type": "integer",
        "x-khp-name": "name",
        "x-khp-role": "object",
        "x-khp-types": [
          "Item"
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "label": {
      "description": "name|index",
      "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.