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’s on fills

Parameters

Parameters of object.flattenTransparency
NameTypeRequiredDescription
antiAliasbooleanno
balanceintegerno0 to 100; raster/vector balance; 0 rasterizes everything
clipComplexRegionsbooleanno
gradientPpiintegerno1 to 2400; areas only gradients and meshes reach
idintegernoobject ID
idsinteger[]noobject IDs
lineArtPpiintegerno1 to 2400
optionsobjectno
preserveAlphabooleannocomposite over nothing instead of white
preserveOverprintsbooleannoareas showing one paint keep its colour and overprint; false clears overprints
presetstringno
strokesToOutlinesbooleanno
textToOutlinesbooleanno

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.