Vector kit command

file.rasterEffectsSettings

Document Raster Effects Settings…

Sets the document's raster effects settings: resolution, colour model, background, anti-aliasing and clipping mask.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of file.rasterEffectsSettings
NameTypeRequiredDescription
addAroundnumbernopoints; 0–1000, room around the art
antiAliasbooleannooff: hard edges
background"transparent" | "white"no
clippingMaskbooleannowhite background only under the art; Rasterize clips to the art
colorModel"rgb" | "cmyk" | "grayscale" | "bitmap"nothe document's mode
highanyno300; one of several alternative parameters
mediumanyno150; one of several alternative parameters
ppinumbernoread by the command beside its listed parameters
preserveSpotColorsbooleannostored
resolutionnumber | "screen" | "medium" | "high"no
screenanyno72; one of several alternative parameters

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: addAround, antiAlias, background, clippingMask, colorModel, high, medium, ppi, preserveSpotColors, resolution, screen. 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": {
    "addAround": {
      "description": "points; 0–1000, room around the art",
      "type": "number"
    },
    "antiAlias": {
      "description": "off: hard edges",
      "type": "boolean"
    },
    "background": {
      "enum": [
        "transparent",
        "white"
      ],
      "type": "string"
    },
    "clippingMask": {
      "description": "white background only under the art; Rasterize clips to the art",
      "type": "boolean"
    },
    "colorModel": {
      "description": "the document's mode",
      "enum": [
        "rgb",
        "cmyk",
        "grayscale",
        "bitmap"
      ],
      "type": "string"
    },
    "high": {
      "description": "300; one of several alternative parameters"
    },
    "medium": {
      "description": "150; one of several alternative parameters"
    },
    "ppi": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "preserveSpotColors": {
      "description": "stored",
      "type": "boolean"
    },
    "resolution": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "enum": [
            "screen",
            "medium",
            "high"
          ],
          "type": "string"
        }
      ]
    },
    "screen": {
      "description": "72; one of several alternative parameters"
    }
  },
  "returns": "the settings",
  "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.