Vector kit command
guide.add
Add Guide
Adds a vertical or horizontal ruler guide at a position, across the canvas or one artboard, on a layer.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
artboard | integer | no | a position counted from 0 (the first is 0); an artboard guide: it runs across that artboard only and moves, is copied and is deleted with it; default a canvas guide, across the whole canvas |
layer | integer | no | object ID |
pos | number | no | points; x for vertical, y for horizontal |
vertical | boolean | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "guide.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: artboard, layer, pos, vertical. 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": {
"artboard": {
"description": "a position counted from 0 (the first is 0); an artboard guide: it runs across that artboard only and moves, is copied and is deleted with it; default a canvas guide, across the whole canvas",
"type": "integer"
},
"layer": {
"description": "object ID",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"pos": {
"description": "points; x for vertical, y for horizontal",
"type": "number"
},
"vertical": {
"type": "boolean"
}
},
"returns": "{index}",
"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.