Vector kit command
object.pattern.make
Make
Makes a pattern swatch from the selection with a tile type and size, and enters pattern editing mode; answers its name.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brickOffset | number | no | 0 to 1; 0.5 |
edit | boolean | no | true |
height | number | no | |
ids | integer[] | no | object IDs |
name | string | no | |
tileType | "grid" | "brickByRow" | "brickByColumn" | "hexByColumn" | "hexByRow" | no | |
width | number | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.pattern.make" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: brickOffset, edit, height, ids, name, tileType, width. 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": {
"brickOffset": {
"description": "0 to 1; 0.5",
"type": "number"
},
"edit": {
"description": "true",
"type": "boolean"
},
"height": {
"type": "number"
},
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"name": {
"type": "string"
},
"tileType": {
"enum": [
"grid",
"brickByRow",
"brickByColumn",
"hexByColumn",
"hexByRow"
],
"type": "string"
},
"width": {
"type": "number"
}
},
"returns": "{name}",
"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.