Vector kit command

perspective.transform

Transform in Perspective

Transforms objects within their own perspective planes by a matrix in plane coordinates, with optional depth and copy.

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.transform
NameTypeRequiredDescription
copybooleanno
depthnumberno
idintegernoobject ID
idsinteger[]noobject IDs
matrixnumber[]no[a, b, c, d, e, f]; affine map in plane coordinates, points: u along the plane, v up or away
plane"left" | "right" | "ground"no

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: copy, depth, id, ids, matrix, plane. 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": {
      "type": "boolean"
    },
    "depth": {
      "type": "number"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "matrix": {
      "description": "[a, b, c, d, e, f]; affine map in plane coordinates, points: u along the plane, v up or away",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "plane": {
      "enum": [
        "left",
        "right",
        "ground"
      ],
      "type": "string"
    }
  },
  "returns": "{ids}",
  "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.