Vector kit command

perspective.grid.set

Define Perspective Grid

Merges settings into the document's perspective grid: kind, origin, horizon, vanishing points, distance, cell size, extent and plane offsets.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of perspective.grid.set
NameTypeRequiredDescription
cellnumberno
distancenumberno
extentnumberno
groundOffsetnumbernopoints; planes moved along their normals
heightnumberno
horizonnumberno
kind1 | 2 | 3no
leftOffsetnumberno
originnumber[]no
plane"left" | "right" | "ground" | "none"no
reprojectbooleanno
rightOffsetnumberno
visiblebooleanno
vpLeftnumber[]no
vpRightnumber[]no
vpVerticalnumber[]no

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: cell, distance, extent, groundOffset, height, horizon, kind, leftOffset, origin, plane, reproject, rightOffset, visible, vpLeft, vpRight, vpVertical. 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": {
    "cell": {
      "type": "number"
    },
    "distance": {
      "type": "number"
    },
    "extent": {
      "type": "number"
    },
    "groundOffset": {
      "description": "points; planes moved along their normals",
      "type": "number"
    },
    "height": {
      "type": "number"
    },
    "horizon": {
      "type": "number"
    },
    "kind": {
      "enum": [
        1,
        2,
        3
      ],
      "type": "integer"
    },
    "leftOffset": {
      "type": "number"
    },
    "origin": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "plane": {
      "enum": [
        "left",
        "right",
        "ground",
        "none"
      ],
      "type": "string"
    },
    "reproject": {
      "type": "boolean"
    },
    "rightOffset": {
      "type": "number"
    },
    "visible": {
      "type": "boolean"
    },
    "vpLeft": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vpRight": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vpVertical": {
      "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.