---
title: "object.mesh.add: Create Gradient Mesh… — Vector kit command — Kition"
description: "Converts the selected filled paths into gradient meshes of rows by columns, flat or highlighted at the centre or edge."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.mesh.add"
---

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

# object.mesh.add

**Create Gradient Mesh….** Converts the selected filled paths into gradient meshes of rows by columns, flat or highlighted at the centre or edge.

- 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 |
| --- | --- | --- | --- |
| `appearance` | `"flat" \| "center" \| "edge"` | no |  |
| `at` | `number[]` | no |  |
| `cols` | `integer` | no | 4 |
| `columns` | `number` | no | read by the command beside its listed parameters |
| `highlight` | `number` | no | percent; 100 |
| `ids` | `integer[]` | no | object IDs |
| `rows` | `integer` | no | 4 |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `appearance`, `at`, `cols`, `columns`, `highlight`, `ids`, `rows`. 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": {
    "appearance": {
      "enum": [
        "flat",
        "center",
        "edge"
      ],
      "type": "string"
    },
    "at": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "cols": {
      "description": "4",
      "type": "integer"
    },
    "columns": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "highlight": {
      "description": "percent; 100",
      "type": "number"
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "rows": {
      "description": "4",
      "type": "integer"
    }
  },
  "returns": "{ids, index?}",
  "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).
