Vector kit command
object.flattenTransparency
Flatten Transparency…
Flattens transparency in the selected art into opaque vector and raster pieces with a flattener preset or options.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
antiAlias | boolean | no | |
balance | integer | no | 0 to 100; raster/vector balance; 0 rasterizes everything |
clipComplexRegions | boolean | no | |
gradientPpi | integer | no | 1 to 2400; areas only gradients and meshes reach |
id | integer | no | object ID |
ids | integer[] | no | object IDs |
lineArtPpi | integer | no | 1 to 2400 |
options | object | no | |
preserveAlpha | boolean | no | composite over nothing instead of white |
preserveOverprints | boolean | no | areas showing one paint keep its colour and overprint; false clears overprints |
preset | string | no | |
strokesToOutlines | boolean | no | |
textToOutlines | boolean | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.flattenTransparency" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: antiAlias, balance, clipComplexRegions, gradientPpi, id, ids, lineArtPpi, options, preserveAlpha, preserveOverprints, preset, strokesToOutlines, textToOutlines. 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": {
"antiAlias": {
"type": "boolean"
},
"balance": {
"description": "0 to 100; raster/vector balance; 0 rasterizes everything",
"type": "integer"
},
"clipComplexRegions": {
"type": "boolean"
},
"gradientPpi": {
"description": "1 to 2400; areas only gradients and meshes reach",
"type": "integer"
},
"id": {
"description": "object ID",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"lineArtPpi": {
"description": "1 to 2400",
"type": "integer"
},
"options": {
"additionalProperties": true,
"type": "object"
},
"preserveAlpha": {
"description": "composite over nothing instead of white",
"type": "boolean"
},
"preserveOverprints": {
"description": "areas showing one paint keep its colour and overprint; false clears overprints",
"type": "boolean"
},
"preset": {
"type": "string"
},
"strokesToOutlines": {
"type": "boolean"
},
"textToOutlines": {
"type": "boolean"
}
},
"returns": "{ids, rasterized: images made, vector: regions made, options}",
"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.