Motion kit command

keyframe.setLabel

Keyframe Label

Sets the label colour of the selected keyframes: `label` a colour name, 0–16, or none. Returns the label and how many keys changed; it only marks keys, motion is unchanged.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of keyframe.setLabel
NameTypeRequiredDescription
labelstringnoname|none|0–16

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: 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": {
    "label": {
      "description": "name|none|0–16",
      "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.