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

Parameters

Parameters of effect.pickColor
NameTypeRequiredDescription
averagebooleanno5×5
compinteger | stringnoread by the command beside its listed parameters
effectinteger | stringnoindex|uid|name
layerinteger | stringno
paramstringnoid (e.g. screenColour) | prop: uid; e.g. screenColour
propanynouid; one of several alternative parameters
timenumberno
xnumberno
ynumbernoeffect space

Call through motion_run

text
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

json
{
  "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.