Design kit command

transform.rotationOrigin

Move rotation origin

Shows, hides or toggles the draggable rotation origin of the selection; not saved.

Kit
Design 0.1.0 (.kdesign)
Changes the document
no

Parameters

Parameters of transform.rotationOrigin
NameTypeRequiredDescription
fuelnumbernoread by the command beside its listed parameters
onbooleanno
pluginstringnoread by the command beside its listed parameters
xnumbernoread by the command beside its listed parameters
ynumbernoread by the command beside its listed parameters

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "transform.rotationOrigin" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: fuel, on, plugin, x, y. design_run answers the step’s result in completed[i].result.

Result

Result of transform.rotationOrigin
NameTypeRequiredDescription
editingbooleanno
movedbooleanno
xnumberno
ynumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "editing": {
      "type": "boolean"
    },
    "moved": {
      "type": "boolean"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "fuel": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "on": {
      "type": "boolean"
    },
    "plugin": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "x": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "y": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.