Vector kit command
flattener.presets.save
Save Transparency Flattener Preset
Creates or changes a saved transparency flattener preset from options; answers it.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | default: a new "Flattener Preset N" |
newName | string | no | |
options | object | no | read by the command beside its listed parameters |
preset | string | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "flattener.presets.save" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: name, newName, options, preset. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
created | boolean | no | |
name | string | no | |
options | object | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"created": {
"type": "boolean"
},
"name": {
"type": "string"
},
"options": {
"additionalProperties": true,
"properties": {
"antiAlias": {
"type": "boolean"
},
"balance": {
"type": "number"
},
"clipComplexRegions": {
"type": "boolean"
},
"gradientPpi": {
"type": "number"
},
"lineArtPpi": {
"type": "number"
},
"preserveAlpha": {
"type": "boolean"
},
"preserveOverprints": {
"type": "boolean"
},
"strokesToOutlines": {
"type": "boolean"
},
"textToOutlines": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"name": {
"description": "default: a new \"Flattener Preset N\"",
"type": "string"
},
"newName": {
"type": "string"
},
"options": {
"additionalProperties": true,
"description": "read by the command beside its listed parameters",
"type": "object"
},
"preset": {
"type": "string"
}
},
"returns": "{name, options, created}",
"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.