Vector kit command

perspective.move

Move in Perspective

Slides objects within their perspective plane (or along its normal) from one point to another, optionally as copies.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of perspective.move
NameTypeRequiredDescription
copybooleannomove copies, as Alt-dragging does
fromnumber[]no
idintegernoobject ID
idsinteger[]noobject IDs
perpendicularbooleannomove along the plane's normal instead, as pressing 5 while dragging does
plane"left" | "right" | "ground"no
snapbooleannodefault: View › Perspective Grid › Snap to Grid
tonumber[]no

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "perspective.move" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: copy, from, id, ids, perpendicular, plane, snap, to. vector_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "copy": {
      "description": "move copies, as Alt-dragging does",
      "type": "boolean"
    },
    "from": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "perpendicular": {
      "description": "move along the plane's normal instead, as pressing 5 while dragging does",
      "type": "boolean"
    },
    "plane": {
      "enum": [
        "left",
        "right",
        "ground"
      ],
      "type": "string"
    },
    "snap": {
      "description": "default: View › Perspective Grid › Snap to Grid",
      "type": "boolean"
    },
    "to": {
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}

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