---
title: "transform.setRotationOrigin: Set rotation origin — Design kit command — Kition"
description: "Sets the point the selection rotates about (or resets it to the centre) while the selection lasts."
canonical: "https://developer.kition.ai/docs/kits/design/commands/transform.setRotationOrigin"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/design/commands/transform.setRotationOrigin](https://developer.kition.ai/docs/kits/design/commands/transform.setRotationOrigin)

# transform.setRotationOrigin

**Set rotation origin.** Sets the point the selection rotates about (or resets it to the centre) while the selection lasts.

- Kit: Design 0.1.0 (.kdesign); reference: [Design kit commands](https://developer.kition.ai/docs/kits/design.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `fuel` | `number` | no | read by the command beside its listed parameters |
| `plugin` | `string` | no | read by the command beside its listed parameters |
| `reset` | `boolean` | no | one of several alternative parameters |
| `x` | `number` | no |  |
| `y` | `number` | no |  |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "transform.setRotationOrigin" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `fuel`, `plugin`, `reset`, `x`, `y`. design_run answers the step’s result in `completed[i].result`.

## Result



```json
{}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "fuel": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "plugin": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "reset": {
      "default": true,
      "description": "one of several alternative parameters",
      "type": "boolean"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/design-darwin-arm64@0.1.0 and the kit itself (design_commands through @kition/cli@0.1.1, built from KitionAI/kition-design@abc7e16).
