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
| Name | Type | Required | Description |
|---|---|---|---|
cell | number | no | |
distance | number | no | |
extent | number | no | |
groundOffset | number | no | points; planes moved along their normals |
height | number | no | |
horizon | number | no | |
kind | 1 | 2 | 3 | no | |
leftOffset | number | no | |
origin | number[] | no | |
plane | "left" | "right" | "ground" | "none" | no | |
reproject | boolean | no | |
rightOffset | number | no | |
visible | boolean | no | |
vpLeft | number[] | no | |
vpRight | number[] | no | |
vpVertical | number[] | 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.