Vector kit command

swatch.merge

Merge Swatches

Merges two or more solid swatches into the first; paints linked to the others relink to it.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of swatch.merge
NameTypeRequiredDescription
idsany[]noread by the command beside its listed parameters
namestringnoread by the command beside its listed parameters
namesany[]no[two or more solid-colour swatches]

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "swatch.merge" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: ids, name, names. 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": {
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "name": {
      "description": "read by the command beside its listed parameters",
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch"
      ]
    },
    "names": {
      "description": "[two or more solid-colour swatches]",
      "items": {},
      "type": "array",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch"
      ]
    }
  },
  "returns": "{name, merged: [deleted names], relinked}",
  "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.