Vector kit command
magicWand.set
Magic Wand Options
Changes the Magic Wand settings (which attributes to compare and their tolerances) and answers the settings; affects only select.magicWand.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
blendingMode | boolean | no | |
fillColor | boolean | no | |
fillTolerance | integer | no | |
opacity | number | no | |
opacityTolerance | number | no | percent |
reset | boolean | no | |
strokeColor | boolean | no | |
strokeTolerance | integer | no | |
strokeWeight | boolean | no | |
weightTolerance | number | no | points |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "magicWand.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: blendingMode, fillColor, fillTolerance, opacity, opacityTolerance, reset, strokeColor, strokeTolerance, strokeWeight, weightTolerance. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
blendingMode | boolean | no | |
fillColor | boolean | no | |
fillTolerance | number | no | |
opacity | boolean | no | |
opacityTolerance | number | no | |
strokeColor | boolean | no | |
strokeTolerance | number | no | |
strokeWeight | boolean | no | |
weightTolerance | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"blendingMode": {
"type": "boolean"
},
"fillColor": {
"type": "boolean"
},
"fillTolerance": {
"type": "number"
},
"opacity": {
"type": "boolean"
},
"opacityTolerance": {
"type": "number"
},
"strokeColor": {
"type": "boolean"
},
"strokeTolerance": {
"type": "number"
},
"strokeWeight": {
"type": "boolean"
},
"weightTolerance": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"blendingMode": {
"type": "boolean"
},
"fillColor": {
"type": "boolean"
},
"fillTolerance": {
"type": "integer"
},
"opacity": {
"type": "number"
},
"opacityTolerance": {
"description": "percent",
"type": "number"
},
"reset": {
"type": "boolean"
},
"strokeColor": {
"type": "boolean"
},
"strokeTolerance": {
"type": "integer"
},
"strokeWeight": {
"type": "boolean"
},
"weightTolerance": {
"description": "points",
"type": "number"
}
},
"returns": "the settings",
"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.