---
title: "object.expand: Expand… — Vector kit command — Kition"
description: "Expands the selected objects, fills and/or strokes into plain art: type to outlines, live shapes to paths, effects baked, blends and envelopes to their content."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.expand"
---

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

# object.expand

**Expand….** Expands the selected objects, fills and/or strokes into plain art: type to outlines, live shapes to paths, effects baked, blends and envelopes to their content.

- 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 |
| --- | --- | --- | --- |
| `fill` | `boolean` | no | gradient fills → `gradient` art |
| `gradient` | `string` | no | like objects; default: `steps` solid strips, concentric ellipses for radial gradients; one of several alternative parameters |
| `mesh` | `any` | no | a gradient mesh; both in a clip group shaped like the object; freeform gradients always become a mesh shaped like it; one of several alternative parameters |
| `object` | `boolean` | no | type → outlines, live shapes → paths, effects baked, blends → groups of their steps, envelopes → their distorted content, placed documents → editable copies of their art, as placing the file without link gives, its symbols, patterns, swatches and images joining the document |
| `on` | `boolean` | no | read by the command beside its listed parameters |
| `steps` | `integer` | no | 1 to 1000; 255 |
| `stroke` | `boolean` | no | strokes → filled outlines |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `fill`, `gradient`, `mesh`, `object`, `on`, `steps`, `stroke`. 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": {
    "fill": {
      "default": true,
      "description": "gradient fills → `gradient` art",
      "type": "boolean"
    },
    "gradient": {
      "description": "like objects; default: `steps` solid strips, concentric ellipses for radial gradients; one of several alternative parameters",
      "type": "string"
    },
    "mesh": {
      "description": "a gradient mesh; both in a clip group shaped like the object; freeform gradients always become a mesh shaped like it; one of several alternative parameters"
    },
    "object": {
      "default": true,
      "description": "type → outlines, live shapes → paths, effects baked, blends → groups of their steps, envelopes → their distorted content, placed documents → editable copies of their art, as placing the file without link gives, its symbols, patterns, swatches and images joining the document",
      "type": "boolean"
    },
    "on": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "steps": {
      "description": "1 to 1000; 255",
      "type": "integer"
    },
    "stroke": {
      "default": true,
      "description": "strokes → filled outlines",
      "type": "boolean"
    }
  },
  "returns": "outlines, live shapes → paths, effects baked, blends → groups of their steps, envelopes → their distorted content, placed documents → editable copies of their art, as placing the file without link gives, its symbols, patterns, swatches and images joining the document), fill?: true (gradient fills → `gradient` art), stroke?: true (strokes → filled outlines), gradient?: \"objects\" (default: `steps` solid strips, concentric ellipses for radial gradients) | \"mesh\" (a gradient mesh) (both in a clip group shaped like the object; freeform gradients always become a mesh shaped like it), steps?: 1..1000 (255)} one undo step → {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).
