Motion kit command

scriptWindow.set

Set Script Window Control

Sets a control of a script window: `widget` (id or name) to `value` (text, number, bool, or a list item's index or text); `changing: true` sends a live update, as while dragging a slider.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of scriptWindow.set
NameTypeRequiredDescription
changingbooleannoa live update: each keystroke / slider step; fires onChanging only
valuestringnotext | number | bool | item index | item text
widgetanyno
windowintegerno

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: changing, value, widget, window. 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": {
    "changing": {
      "description": "a live update: each keystroke / slider step; fires onChanging only",
      "type": "boolean"
    },
    "value": {
      "description": "text | number | bool | item index | item text",
      "type": "string"
    },
    "widget": {},
    "window": {
      "type": "integer"
    }
  },
  "returns": "fires onChanging / onChange",
  "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.