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

Parameters of magicWand.set
NameTypeRequiredDescription
blendingModebooleanno
fillColorbooleanno
fillToleranceintegerno
opacitynumberno
opacityTolerancenumbernopercent
resetbooleanno
strokeColorbooleanno
strokeToleranceintegerno
strokeWeightbooleanno
weightTolerancenumbernopoints

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

Result of magicWand.set
NameTypeRequiredDescription
blendingModebooleanno
fillColorbooleanno
fillTolerancenumberno
opacitybooleanno
opacityTolerancenumberno
strokeColorbooleanno
strokeTolerancenumberno
strokeWeightbooleanno
weightTolerancenumberno
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.