---
title: "object.transformEach: Transform Each… — Vector kit command — Kition"
description: "Scales, moves, rotates and reflects each selected object about its own reference point (optionally randomised or as copies), as Transform Each does."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.transformEach"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/object.transformEach](https://developer.kition.ai/docs/kits/vector/commands/object.transformEach)

# 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); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `copy` | `boolean` | no |  |
| `corners` | `boolean` | no | Scale Corners; both default to the preferences |
| `moveH` | `number` | no | points |
| `moveV` | `number` | no | points; down = + |
| `patterns` | `boolean` | no | Transform Patterns; default: prefs transformPatternTiles |
| `random` | `boolean` | no |  |
| `reference` | `integer` | no | 0 to 8; 9-point grid, 4 = centre |
| `reflectX` | `boolean` | no | flip vertically |
| `reflectY` | `boolean` | no | flip horizontally |
| `rotate` | `number` | no | degrees; counter-clockwise |
| `scaleH` | `number` | no | percent; 100 |
| `scaleV` | `number` | no | percent; 100 |
| `seed` | `integer` | no |  |
| `strokes` | `boolean` | no | Scale 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/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
