Motion kit command
effect.pickColor
Pick Effect Colour
A colour parameter's eyedropper on a keyer (Effect Controls): the colour of the effect's input (the layer's pixels before this effect, so a keyed screen can still be picked) at a layer-space point, set on the parameter. `average` takes the 5 × 5 pixels around it.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
- Acts on
layer(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
average | boolean | no | 5×5 |
comp | integer | string | no | read by the command beside its listed parameters |
effect | integer | string | no | index|uid|name |
layer | integer | string | no | |
param | string | no | id (e.g. screenColour) | prop: uid; e.g. screenColour |
prop | any | no | uid; one of several alternative parameters |
time | number | no | |
x | number | no | |
y | number | no | effect space |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "effect.pickColor" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: average, comp, effect, layer, param, prop, time, x, y. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"average": {
"description": "5×5",
"type": "boolean"
},
"comp": {
"description": "read by the command beside its listed parameters",
"oneOf": [
{
"description": "comp's item id as motion_inspect lists it",
"type": "integer"
},
{
"description": "the item id as receipts print it (\"1\"), or the comp's name",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"effect": {
"description": "index|uid|name",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"layer": {
"oneOf": [
{
"description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
"type": "integer"
},
{
"description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-numbers": true,
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"param": {
"description": "id (e.g. screenColour) | prop: uid; e.g. screenColour",
"type": "string"
},
"prop": {
"description": "uid; one of several alternative parameters"
},
"time": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"description": "effect space",
"type": "number"
}
},
"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.