Motion kit command
effect.list
List Effects
Lists the effects effect.apply accepts (`filter` matches names or ids) with each parameter's id, name, type, default, popup options, ranges and decimals; popup values are zero-based. Point defaults are in pixels of a comp-sized layer of the active comp (`unit` px, as prop.set takes them), or fractions of the layer size when no comp is open (`unit` layer). Read before effect.apply or setting effect properties.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
filter | string | no |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "effect.list" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: filter. motion_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
{
"items": {
"additionalProperties": true,
"properties": {
"category": {
"type": "string"
},
"float": {
"type": "boolean"
},
"gpu": {
"type": "boolean"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"params": {
"items": {
"additionalProperties": true,
"properties": {
"default": {
"type": "integer"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"options": {
"items": {},
"type": "array"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
}Parameter schema
{
"additionalProperties": false,
"properties": {
"filter": {
"type": "string"
}
},
"returns": "[{params: [{id, name, type, default, unit?, options?, min?, max?, sliderMin?, sliderMax?, decimals?}]}]; popup indices are zero-based (JSX uses one-based values); point defaults (unit `px`) are pixels of a comp-sized layer of the active comp, as prop.set takes them (unit `layer`: fractions of the layer size, when no comp is open)",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.