Vector kit command
effect.apply
Apply Effect
Applies a live effect (see effect.list for ids and parameters) to the selection, ids or one appearance item; the effect stays editable.
- 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 |
|---|---|---|---|
contents | any | no | contents: the objects inside groups and layers; one of several alternative parameters |
effect | string | no | the effect's catalogue id (`stylize.dropShadow`) |
id | integer | string | no | an object ID, or the effect's catalogue name |
ids | integer[] | no | object IDs |
item | integer | null | no | |
params | object | no | missing keys take the dialog defaults |
target | string | no | like object; one of several alternative parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "effect.apply" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: contents, effect, id, ids, item, params, target. 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": {
"contents": {
"description": "contents: the objects inside groups and layers; one of several alternative parameters"
},
"effect": {
"description": "the effect's catalogue id (`stylize.dropShadow`)",
"type": "string"
},
"id": {
"description": "an object ID, or the effect's catalogue name",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-khp-types": [
"Node"
]
},
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"item": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"params": {
"additionalProperties": true,
"description": "missing keys take the dialog defaults",
"type": "object"
},
"target": {
"description": "like object; one of several alternative parameters",
"type": "string"
}
},
"returns": "{ids, index, item, grouped?}",
"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.