Motion kit command

script.settings.get

Get Script Setting

Reads a script setting (`section`, `key`) from the settings store, as the scripting API's app.settings.getSetting() does. Returns {have, value}.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of script.settings.get
NameTypeRequiredDescription
keystringno
sectionanyno

Call through motion_run

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

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

Result

Result JSON Schema
json
{
  "description": "{have, value} (app.settings.haveSetting / getSetting)"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string"
    },
    "section": {}
  },
  "returns": "{have, value} (app.settings.haveSetting / getSetting)",
  "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.