Design kit command
file.exportLayers
Export layers
Exports the selected layers (or every layer with export settings) by their export settings, or their assets, as files or a zip.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- no
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
assets | boolean | no | |
bleed | number | string | no | |
bleedMarks | boolean | no | |
cmyk | boolean | no | |
cropMarks | boolean | no | |
ids | (integer | string)[] | no | default the selection, else every layer on the page with export settings |
vdCompat | boolean | no | |
zip | boolean | no |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "file.exportLayers" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: assets, bleed, bleedMarks, cmyk, cropMarks, ids, vdCompat, zip. design_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"assets": {
"type": "boolean"
},
"bleed": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"bleedMarks": {
"type": "boolean"
},
"cmyk": {
"type": "boolean"
},
"cropMarks": {
"type": "boolean"
},
"ids": {
"description": "default the selection, else every layer on the page with export settings",
"items": {
"description": "an id",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"vdCompat": {
"type": "boolean"
},
"zip": {
"type": "boolean"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.