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
| Name | Type | Required | Description |
|---|---|---|---|
addAround | number | no | points; 0–1000, room around the art |
antiAlias | boolean | no | off: hard edges |
background | "transparent" | "white" | no | |
clippingMask | boolean | no | white background only under the art; Rasterize clips to the art |
colorModel | "rgb" | "cmyk" | "grayscale" | "bitmap" | no | the document's mode |
high | any | no | 300; one of several alternative parameters |
medium | any | no | 150; one of several alternative parameters |
ppi | number | no | read by the command beside its listed parameters |
preserveSpotColors | boolean | no | stored |
resolution | number | "screen" | "medium" | "high" | no | |
screen | any | no | 72; 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.