Vector kit command

perspective.presets.save

Save Perspective Grid Preset

Creates or changes a saved perspective grid preset.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of perspective.presets.save
NameTypeRequiredDescription
kindstringnoread by the command beside its listed parameters
namestringnodefault: a new "Perspective Preset N"
newNamestringno
presetstringno

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

Result of perspective.presets.save
NameTypeRequiredDescription
createdbooleanno
definitionobjectno
namestringno
Result JSON Schema
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/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.