Motion kit command

scope.analyze

Scopes

Analyses the comp's frame at `time`: `scope` waveform (RGB, luma, YC), vectorscope, histogram or parade, with `standard` rec601/709/2020; returns the scope data plus mean RGB and min, max and mean luma. Use to check exposure and colour.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of scope.analyze
NameTypeRequiredDescription
clampbooleanno
compinteger | stringno
floatbooleanno
frameintegernoone of several alternative parameters
scope"waveformRgb" | "waveformLuma" | "waveformYc" | "vectorscopeYuv" | "vectorscopeHls" | "histogram" | "paradeRgb" | "paradeYuv"no
sizenumberno
standard"rec601" | "rec709" | "rec2020"no
timenumbernoone of several alternative parameters

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: clamp, comp, float, frame, scope, size, standard, time. motion_run answers the step’s result in completed[i].result.

Result

Result of scope.analyze
NameTypeRequiredDescription
heightintegerno
lumaobjectno
meannumber[]no
peaksinteger[][]no
scopestringno
totalsinteger[]no
widthintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "height": {
      "type": "integer"
    },
    "luma": {
      "additionalProperties": true,
      "properties": {
        "max": {
          "type": "number"
        },
        "mean": {
          "type": "number"
        },
        "min": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "mean": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "peaks": {
      "items": {
        "items": {
          "type": "integer"
        },
        "type": "array"
      },
      "type": "array"
    },
    "scope": {
      "type": "string"
    },
    "totals": {
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "clamp": {
      "type": "boolean"
    },
    "comp": {
      "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"
      ]
    },
    "float": {
      "type": "boolean"
    },
    "frame": {
      "description": "one of several alternative parameters",
      "type": "integer"
    },
    "scope": {
      "enum": [
        "waveformRgb",
        "waveformLuma",
        "waveformYc",
        "vectorscopeYuv",
        "vectorscopeHls",
        "histogram",
        "paradeRgb",
        "paradeYuv"
      ],
      "type": "string"
    },
    "size": {
      "type": "number"
    },
    "standard": {
      "enum": [
        "rec601",
        "rec709",
        "rec2020"
      ],
      "type": "string"
    },
    "time": {
      "description": "one of several alternative parameters",
      "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.