---
title: "object.distort: Free Distort — Vector kit command — Kition"
description: "Warps the selection or ids projectively so its bounds' four corners land on the given points, as Free Distort does."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.distort"
---

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

# object.distort

**Free Distort.** Warps the selection or ids projectively so its bounds' four corners land on the given points, as Free Distort does.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bend` | `number` | no | read by the command beside its listed parameters |
| `corners` | `any[]` | no | [[x,y]×4] (TL, TR, BR, BL); TL, TR, BR, BL |
| `from` | `number[]` | no | [x0, y0, x1, y1]; default: selection bounds |
| `horizontal` | `number` | no | read by the command beside its listed parameters |
| `ids` | `integer[]` | no | object IDs |
| `orientation` | `string` | no | read by the command beside its listed parameters |
| `vertical` | `number` | no | read by the command beside its listed parameters |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `bend`, `corners`, `from`, `horizontal`, `ids`, `orientation`, `vertical`. 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": {
    "bend": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "corners": {
      "description": "[[x,y]×4] (TL, TR, BR, BL); TL, TR, BR, BL",
      "items": {},
      "type": "array"
    },
    "from": {
      "description": "[x0, y0, x1, y1]; default: selection bounds",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "horizontal": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "orientation": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "vertical": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "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).
