Vector kit command

object.transformEach

Transform Each…

Scales, moves, rotates and reflects each selected object about its own reference point (optionally randomised or as copies), as Transform Each does.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.transformEach
NameTypeRequiredDescription
copybooleanno
cornersbooleannoScale Corners; both default to the preferences
moveHnumbernopoints
moveVnumbernopoints; down = +
patternsbooleannoTransform Patterns; default: prefs transformPatternTiles
randombooleanno
referenceintegerno0 to 8; 9-point grid, 4 = centre
reflectXbooleannoflip vertically
reflectYbooleannoflip horizontally
rotatenumbernodegrees; counter-clockwise
scaleHnumbernopercent; 100
scaleVnumbernopercent; 100
seedintegerno
strokesbooleannoScale Strokes & Effects

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: copy, corners, moveH, moveV, patterns, random, reference, reflectX, reflectY, rotate, scaleH, scaleV, seed, strokes. 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": {
    "copy": {
      "type": "boolean"
    },
    "corners": {
      "description": "Scale Corners; both default to the preferences",
      "type": "boolean"
    },
    "moveH": {
      "description": "points",
      "type": "number"
    },
    "moveV": {
      "description": "points; down = +",
      "type": "number"
    },
    "patterns": {
      "description": "Transform Patterns; default: prefs transformPatternTiles",
      "type": "boolean"
    },
    "random": {
      "type": "boolean"
    },
    "reference": {
      "description": "0 to 8; 9-point grid, 4 = centre",
      "type": "integer"
    },
    "reflectX": {
      "description": "flip vertically",
      "type": "boolean"
    },
    "reflectY": {
      "description": "flip horizontally",
      "type": "boolean"
    },
    "rotate": {
      "description": "degrees; counter-clockwise",
      "type": "number"
    },
    "scaleH": {
      "description": "percent; 100",
      "type": "number"
    },
    "scaleV": {
      "description": "percent; 100",
      "type": "number"
    },
    "seed": {
      "type": "integer"
    },
    "strokes": {
      "description": "Scale Strokes & Effects",
      "type": "boolean"
    }
  },
  "returns": "{ids}",
  "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.