Motion kit command

prefs.set

Change Setting

Changes settings: `key` and `value` (e.g. general.undoLevels), or several at once as `values` {key: value}. Saved to the preferences; scripts can't change scripting permissions. Affects the app, not the project file.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of prefs.set
NameTypeRequiredDescription
keystringno
valuestringno
valuesobjectno

Call through motion_run

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

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

Result

Result JSON Schema
json
{
  "description": "The command's answer"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "values": {
      "additionalProperties": true,
      "properties": {
        "key": {}
      },
      "type": "object"
    }
  },
  "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.