Vector kit command
print.presets.save
Save Print Preset
Creates or changes a saved print preset.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | default: a new "Print Preset N" |
newName | string | no | |
preset | string | no | |
settings | object | no | over it |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "print.presets.save" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: name, newName, preset, settings. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
created | boolean | no | |
name | string | no | |
settings | object | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"created": {
"type": "boolean"
},
"name": {
"type": "string"
},
"settings": {
"additionalProperties": true,
"properties": {
"advanced": {
"additionalProperties": true,
"properties": {
"flattenerPreset": {
"type": "string"
},
"overprints": {
"type": "string"
},
"printAsBitmap": {
"type": "boolean"
}
},
"type": "object"
},
"artboards": {
"type": "string"
},
"autoRotate": {
"type": "boolean"
},
"bleed": {
"additionalProperties": true,
"properties": {
"bottom": {
"type": "number"
},
"left": {
"type": "number"
},
"right": {
"type": "number"
},
"top": {
"type": "number"
},
"useDocument": {
"type": "boolean"
}
},
"type": "object"
},
"collate": {
"type": "boolean"
},
"color": {
"additionalProperties": true,
"properties": {
"intent": {
"type": "string"
},
"preserveNumbers": {
"type": "boolean"
},
"profile": {
"type": "string"
}
},
"type": "object"
},
"copies": {
"type": "number"
},
"graphics": {
"additionalProperties": true,
"properties": {
"autoFlatness": {
"type": "boolean"
},
"flatness": {
"type": "number"
},
"fonts": {
"type": "string"
}
},
"type": "object"
},
"height": {
"type": "number"
},
"margin": {
"type": "number"
},
"marks": {
"additionalProperties": true,
"properties": {
"colorBars": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"offset": {
"type": "number"
},
"pageInfo": {
"type": "boolean"
},
"registration": {
"type": "boolean"
},
"trim": {
"type": "boolean"
},
"weight": {
"type": "number"
}
},
"type": "object"
},
"media": {
"type": "string"
},
"orientation": {
"type": "string"
},
"output": {
"additionalProperties": true,
"properties": {
"emulsion": {
"type": "string"
},
"image": {
"type": "string"
},
"inks": {
"type": "array"
},
"mode": {
"type": "string"
},
"spotsToProcess": {
"type": "boolean"
}
},
"type": "object"
},
"overlap": {
"type": "number"
},
"placement": {
"additionalProperties": true,
"properties": {
"origin": {
"type": "string"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"printLayers": {
"type": "string"
},
"range": {
"type": "string"
},
"reverse": {
"type": "boolean"
},
"scale": {
"additionalProperties": true,
"properties": {
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"type": "object"
},
"scaling": {
"type": "string"
},
"skipBlank": {
"type": "boolean"
},
"tileOrigin": {
"additionalProperties": true,
"properties": {
"placed": {
"type": "boolean"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"tileRange": {
"type": "string"
},
"transverse": {
"type": "boolean"
},
"width": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"name": {
"description": "default: a new \"Print Preset N\"",
"type": "string"
},
"newName": {
"type": "string"
},
"preset": {
"type": "string"
},
"settings": {
"additionalProperties": true,
"description": "over it",
"type": "object"
}
},
"returns": "{name, created, 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.