---
title: "scope.analyze: Scopes — Motion kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/scope.analyze"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/scope.analyze](https://developer.kition.ai/docs/kits/motion/commands/scope.analyze)

# 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); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `clamp` | `boolean` | no |  |
| `comp` | `integer \| string` | no |  |
| `float` | `boolean` | no |  |
| `frame` | `integer` | no | one of several alternative parameters |
| `scope` | `"waveformRgb" \| "waveformLuma" \| "waveformYc" \| "vectorscopeYuv" \| "vectorscopeHls" \| "histogram" \| "paradeRgb" \| "paradeYuv"` | no |  |
| `size` | `number` | no |  |
| `standard` | `"rec601" \| "rec709" \| "rec2020"` | no |  |
| `time` | `number` | no | one 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `height` | `integer` | no |  |
| `luma` | `object` | no |  |
| `mean` | `number[]` | no |  |
| `peaks` | `integer[][]` | no |  |
| `scope` | `string` | no |  |
| `totals` | `integer[]` | no |  |
| `width` | `integer` | no |  |

```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/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
