Scene kit command

modal.pointer

Transform Pointer

Moves the transform under way to where the pointer is now, with Shift's slowing and Ctrl's steps; answers the transform.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of modal.pointer
NameTypeRequiredDescription
atnumber[]yesWhere the pointer is, [x, y] in viewport pixels
precisionbooleannoShift held: the pointer's motion counts for a tenth
stepbooleannoCtrl or Cmd held: snapping is inverted (with increments the value goes in steps of 1 m, 5°, 0.1; with precision 0.1 m, 1°, 0.01)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "modal.pointer", "params": { "at": <number[]> } }]
}

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

Result

Result of modal.pointer
NameTypeRequiredDescription
activebooleanno
changedbooleanno
headerstringno
kind"move" | "rotate" | "scale" | "inset" | "bevel" | "loopCut" | "slide"no
takenbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "active": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean"
    },
    "header": {
      "type": "string"
    },
    "kind": {
      "enum": [
        "move",
        "rotate",
        "scale",
        "inset",
        "bevel",
        "loopCut",
        "slide"
      ],
      "type": "string"
    },
    "taken": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "at": {
      "description": "Where the pointer is, [x, y] in viewport pixels",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "precision": {
      "description": "Shift held: the pointer's motion counts for a tenth",
      "type": "boolean"
    },
    "step": {
      "description": "Ctrl or Cmd held: snapping is inverted (with increments the value goes in steps of 1 m, 5°, 0.1; with precision 0.1 m, 1°, 0.01)",
      "type": "boolean"
    }
  },
  "required": [
    "at"
  ],
  "type": "object"
}

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