Motion kit command

roto.options

Rotoscope Brush Options

Sets Rotoscope Brush tool options: brush `diameter` and `refineDiameter` (px), the viewer `view` (alphaBoundary, alpha, alphaOverlay, none), overlay and boundary colours and opacity, and `autoPropagate`. Returns them; the project is unchanged.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of roto.options
NameTypeRequiredDescription
autoPropagatebooleanno
boundaryColornumber[]no[r, g, b]
diameternumberno
overlayColornumber[]no[r, g, b]
overlayOpacitynumberno
refineDiameternumberno
view"alphaBoundary" | "alpha" | "alphaOverlay" | "none"no

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: autoPropagate, boundaryColor, diameter, overlayColor, overlayOpacity, refineDiameter, view. 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": {
    "autoPropagate": {
      "type": "boolean"
    },
    "boundaryColor": {
      "description": "[r, g, b]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "diameter": {
      "type": "number"
    },
    "overlayColor": {
      "description": "[r, g, b]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "overlayOpacity": {
      "type": "number"
    },
    "refineDiameter": {
      "type": "number"
    },
    "view": {
      "enum": [
        "alphaBoundary",
        "alpha",
        "alphaOverlay",
        "none"
      ],
      "type": "string"
    }
  },
  "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.