Motion kit command

view.channel

Show Channel

Shows one channel in the viewer: `channel` rgb, red, green, blue, alpha or rgbStraight, `colorized` tints single channels, `toggle` returns to RGB when it is already shown. View state only.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of view.channel
NameTypeRequiredDescription
channel"rgb" | "red" | "green" | "blue" | "alpha" | "rgbStraight"no
colorizedbooleanno
togglebooleanno

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "view.channel" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: channel, colorized, toggle. motion_run answers the step’s result in completed[i].result.

Result

Result of view.channel
NameTypeRequiredDescription
channelstringno
colorizedbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "channel": {
      "type": "string"
    },
    "colorized": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "channel": {
      "enum": [
        "rgb",
        "red",
        "green",
        "blue",
        "alpha",
        "rgbStraight"
      ],
      "type": "string"
    },
    "colorized": {
      "type": "boolean"
    },
    "toggle": {
      "type": "boolean"
    }
  },
  "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.