---
title: "perspective.presets.save: Save Perspective Grid Preset — Vector kit command — Kition"
description: "Creates or changes a saved perspective grid preset."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/perspective.presets.save"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/perspective.presets.save](https://developer.kition.ai/docs/kits/vector/commands/perspective.presets.save)

# perspective.presets.save

**Save Perspective Grid Preset.** Creates or changes a saved perspective grid preset.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `string` | no | read by the command beside its listed parameters |
| `name` | `string` | no | default: a new "Perspective Preset N" |
| `newName` | `string` | no |  |
| `preset` | `string` | no |  |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "perspective.presets.save" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `kind`, `name`, `newName`, `preset`. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `created` | `boolean` | no |  |
| `definition` | `object` | no |  |
| `name` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "created": {
      "type": "boolean"
    },
    "definition": {
      "additionalProperties": true,
      "properties": {
        "angle": {
          "type": "number"
        },
        "distance": {
          "type": "number"
        },
        "gridline": {
          "type": "number"
        },
        "groundColor": {
          "type": "string"
        },
        "horizonHeight": {
          "type": "number"
        },
        "kind": {
          "type": "number"
        },
        "leftColor": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "opacity": {
          "type": "number"
        },
        "rightColor": {
          "type": "string"
        },
        "scale": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "thirdVp": {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "units": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "name": {
      "type": "string"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "kind": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "name": {
      "description": "default: a new \"Perspective Preset N\"",
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "preset": {
      "type": "string"
    }
  },
  "returns": "{name, created, definition}",
  "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).
