Motion kit command

view.customRgb

My Custom RGB

View ▸ Simulate Output ▸ My Custom RGB…: define the custom output device (kept in Settings) and, unless `apply` is false, simulate it.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of view.customRgb
NameTypeRequiredDescription
applybooleannodefault true: simulate it
bluenumber[]noCIE xy
fromstringnoa Simulate Output profile to start from
gammanumberno
greennumber[]noCIE xy
iccstringnoRGB ICC profile, matrix/TRC or LUT-based A2B0: read when it changes, "" clears; a LUT profile simulates through its tables, `lutProfile` in the reply; typed-in numbers replace it
namestringno
preserveRgbbooleanno
rednumber[]noCIE xy
reloadbooleanno
resetbooleanno
srgbCurvebooleanno
whitenumber[]noCIE xy

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: apply, blue, from, gamma, green, icc, name, preserveRgb, red, reload, reset, srgbCurve, white. motion_run answers the step’s result in completed[i].result.

Result

Result of view.customRgb
NameTypeRequiredDescription
activebooleanno
bluenumber[]no
gammanumberno
greennumber[]no
iccstringno
lutProfilebooleanno
namestringno
rednumber[]no
srgbCurvebooleanno
whitenumber[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "active": {
      "type": "boolean"
    },
    "blue": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "gamma": {
      "type": "number"
    },
    "green": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "icc": {
      "type": "string"
    },
    "lutProfile": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "red": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "srgbCurve": {
      "type": "boolean"
    },
    "white": {
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "apply": {
      "description": "default true: simulate it",
      "type": "boolean"
    },
    "blue": {
      "description": "CIE xy",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "from": {
      "description": "a Simulate Output profile to start from",
      "type": "string"
    },
    "gamma": {
      "type": "number"
    },
    "green": {
      "description": "CIE xy",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "icc": {
      "description": "RGB ICC profile, matrix/TRC or LUT-based A2B0: read when it changes, \"\" clears; a LUT profile simulates through its tables, `lutProfile` in the reply; typed-in numbers replace it",
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "preserveRgb": {
      "type": "boolean"
    },
    "red": {
      "description": "CIE xy",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "reload": {
      "type": "boolean"
    },
    "reset": {
      "type": "boolean"
    },
    "srgbCurve": {
      "type": "boolean"
    },
    "white": {
      "description": "CIE xy",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "returns": "the definition (kept in Settings)",
  "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.