Motion kit command

scriptWindow.get

Script Window Controls

Returns a script window's controls (`window` id or title): its tree of controls with type, name, text, value, items, selection, bounds and enabled state.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of scriptWindow.get
NameTypeRequiredDescription
viewsintegernoread by the command beside its listed parameters
windowintegernoid | title

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: views, window. motion_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "description": "{id, title, kind, root: {id, type, name, text, value, checked, items, selection, bounds, enabled, draw (onDraw paint list), children…}}"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "views": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "window": {
      "description": "id | title",
      "type": "integer"
    }
  },
  "returns": "{id, title, kind, root: {id, type, name, text, value, checked, items, selection, bounds, enabled, draw (onDraw paint list), children…}}",
  "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.