Vector kit command
perspective.presets.list
Perspective Grid Presets
Answers the perspective grid presets, built-in and saved.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | no | read by the command beside its listed parameters |
name | string | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "perspective.presets.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: kind, name. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
presets | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"presets": {
"items": {
"additionalProperties": true,
"properties": {
"angle": {
"type": "number"
},
"builtIn": {
"type": "boolean"
},
"distance": {
"type": "number"
},
"gridline": {
"type": "number"
},
"groundColor": {
"type": "string"
},
"horizonHeight": {
"type": "number"
},
"kind": {
"type": "number"
},
"leftColor": {
"type": "string"
},
"name": {
"type": "string"
},
"opacity": {
"type": "number"
},
"rightColor": {
"type": "string"
},
"scale": {
"type": "array"
},
"thirdVp": {
"type": "array"
},
"units": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"kind": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"name": {
"description": "read by the command beside its listed parameters",
"type": "string"
}
},
"returns": "{presets: [{builtIn, name, kind, …the perspective.grid.define fields}]} the built-in views (fitted to the first artboard, protected) first, then the saved presets",
"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.