Vector kit command

swatch.move

Move Swatch

Moves swatches (or colour groups) to a position or into another colour group.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of swatch.move
NameTypeRequiredDescription
groupstringno
nameany[]no[swatch names, in order; or colour group names to reorder the groups]; one of several alternative parameters
namesany[]no[swatch names, in order; or colour group names to reorder the groups]; one of several alternative parameters
tointegerno

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: group, name, names, to. 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": {
    "group": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "SwatchGroup"
      ]
    },
    "name": {
      "description": "[swatch names, in order; or colour group names to reorder the groups]; one of several alternative parameters",
      "type": "array",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch",
        "SwatchGroup"
      ]
    },
    "names": {
      "description": "[swatch names, in order; or colour group names to reorder the groups]; one of several alternative parameters",
      "type": "array",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch",
        "SwatchGroup"
      ]
    },
    "to": {
      "type": "integer"
    }
  },
  "returns": "{moved}",
  "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.