Vector kit command

object.pattern.make

Make

Makes a pattern swatch from the selection with a tile type and size, and enters pattern editing mode; answers its name.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of object.pattern.make
NameTypeRequiredDescription
brickOffsetnumberno0 to 1; 0.5
editbooleannotrue
heightnumberno
idsinteger[]noobject IDs
namestringno
tileType"grid" | "brickByRow" | "brickByColumn" | "hexByColumn" | "hexByRow"no
widthnumberno

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "object.pattern.make" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: brickOffset, edit, height, ids, name, tileType, width. 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": {
    "brickOffset": {
      "description": "0 to 1; 0.5",
      "type": "number"
    },
    "edit": {
      "description": "true",
      "type": "boolean"
    },
    "height": {
      "type": "number"
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "name": {
      "type": "string"
    },
    "tileType": {
      "enum": [
        "grid",
        "brickByRow",
        "brickByColumn",
        "hexByColumn",
        "hexByRow"
      ],
      "type": "string"
    },
    "width": {
      "type": "number"
    }
  },
  "returns": "{name}",
  "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.