Motion kit command

light.sheen

Sheen

Sweeps one specular band across a `layer` once: two CC Light Sweep effects (soft 0.14 and core 0.5 intensity, warm white, 115 degree CSS angle) clipped to the layer's alpha, driven by a Sheen Progress slider keyed 0 to 1 over `frames` (32) from `start` with the swift curve. One undo step.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes
Acts on
layer (one id), which a run step’s on fills

Parameters

Parameters of light.sheen
NameTypeRequiredDescription
anglenumbernodegrees; CSS gradient angle, default 115
colorstringnoa colour such as #rrggbb
compinteger | stringnoread by the command beside its listed parameters
corenumbernonarrow core intensity, default 0.5
easestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
framesnumbernosweep length, default 32
layerinteger | stringnodefault the first selected layer
softnumbernowide light intensity, default 0.14
startnumbernoseconds; comp time; default the current time
widthnumbernoband width in layer widths, default 2

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: angle, color, comp, core, ease, frames, layer, soft, start, width. 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": {
    "angle": {
      "description": "degrees; CSS gradient angle, default 115",
      "type": "number"
    },
    "color": {
      "description": "a colour such as #rrggbb",
      "type": "string"
    },
    "comp": {
      "description": "read by the command beside its listed parameters",
      "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"
      ]
    },
    "core": {
      "description": "narrow core intensity, default 0.5",
      "type": "number"
    },
    "ease": {
      "description": "a curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ]
    },
    "frames": {
      "description": "sweep length, default 32",
      "type": "number"
    },
    "layer": {
      "description": "default the first selected layer",
      "oneOf": [
        {
          "description": "layer id or 1-based index",
          "type": "integer"
        },
        {
          "description": "layer name or #n",
          "type": "string"
        }
      ],
      "x-khp-index": "#",
      "x-khp-index-numbers": true,
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "soft": {
      "description": "wide light intensity, default 0.14",
      "type": "number"
    },
    "start": {
      "description": "seconds; comp time; default the current time",
      "type": "number"
    },
    "width": {
      "description": "band width in layer widths, default 2",
      "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.