Vector kit command

artboard.rearrange

Rearrange All Artboards…

Rearranges all artboards in a grid, row or column with an order, column count and spacing, optionally moving their art.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of artboard.rearrange
NameTypeRequiredDescription
byColumnbooleannoread by the command beside its listed parameters
columnsintegerno2; the rows for gridByColumn; row and column ignore it
layout"gridByRow" | "gridByColumn" | "row" | "column"nogridByRow; byColumn?: true is gridByColumn
moveArtworkbooleannolocked and hidden art only with prefs moveLockedWithArtboard
order"leftToRight" | "rightToLeft"noleftToRight: right-to-left mirrors the order along the rows
spacingnumbernopoints; 20

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: byColumn, columns, layout, moveArtwork, order, spacing. 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": {
    "byColumn": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "columns": {
      "description": "2; the rows for gridByColumn; row and column ignore it",
      "type": "integer"
    },
    "layout": {
      "description": "gridByRow; byColumn?: true is gridByColumn",
      "enum": [
        "gridByRow",
        "gridByColumn",
        "row",
        "column"
      ],
      "type": "string"
    },
    "moveArtwork": {
      "default": true,
      "description": "locked and hidden art only with prefs moveLockedWithArtboard",
      "type": "boolean"
    },
    "order": {
      "description": "leftToRight: right-to-left mirrors the order along the rows",
      "enum": [
        "leftToRight",
        "rightToLeft"
      ],
      "type": "string"
    },
    "spacing": {
      "description": "points; 20",
      "type": "number"
    }
  },
  "returns": "{artboards, rows, columns}",
  "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.