Vector kit command
swatch.addUsedColors
Add Used Colors
Adds a swatch for each colour the art (or only the selection) uses, optionally global and linking the matching paints.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
global | boolean | no | the new swatches are global and the matching unlinked colours in that art link to them |
selection | boolean | no | only the selected art's colours; default: all the art's |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "swatch.addUsedColors" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: global, selection. 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": {
"global": {
"default": false,
"description": "the new swatches are global and the matching unlinked colours in that art link to them",
"type": "boolean"
},
"selection": {
"default": false,
"description": "only the selected art's colours; default: all the art's",
"type": "boolean"
}
},
"returns": "{added: [names], linked}",
"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.