Motion kit command

paint.options

Paint Options

Sets the paint tool options later paint.stroke calls use: colour, opacity, flow, mode, channels, duration mode, brush tip (diameter, angle, roundness, hardness, spacing), pressure, clone source and offset; `reset` restores defaults. Returns them.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of paint.options
NameTypeRequiredDescription
alignedbooleanno
anglenumberno
backgroundstring | number[]no
channelsstringno
cloneOffsetany[]no
clonePointanyno
clonePresetintegerno
cloneSourcenumberno
cloneTimenumberno
cloneTimeShiftnumberno
colorstringno
customFramesintegerno
diameternumberno
durationModeanyno
eraseModeanyno
flownumberno
flowPressurebooleanno
hardnessnumberno
lockSourceTimebooleanno
minSizenumberno
modestringno
namestringnoread by the command beside its listed parameters
opacitynumberno
opacityPressurebooleanno
overlayDifferencebooleanno
overlayOpacitynumberno
presetstringno
resetbooleanno
roundnessnumberno
showOverlaybooleanno
sizePressurebooleanno
spacingnumberno

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: aligned, angle, background, channels, cloneOffset, clonePoint, clonePreset, cloneSource, cloneTime, cloneTimeShift, color, customFrames, diameter, durationMode, eraseMode, flow, flowPressure, hardness, lockSourceTime, minSize, mode, name, opacity, opacityPressure, overlayDifference, overlayOpacity, preset, reset, roundness, showOverlay, sizePressure, spacing. 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": {
    "aligned": {
      "type": "boolean"
    },
    "angle": {
      "type": "number"
    },
    "background": {
      "oneOf": [
        {
          "description": "#rrggbb",
          "type": "string"
        },
        {
          "description": "[r, g, b(, a)] 0 to 1",
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ]
    },
    "channels": {
      "type": "string"
    },
    "cloneOffset": {
      "items": {},
      "type": "array"
    },
    "clonePoint": {},
    "clonePreset": {
      "type": "integer"
    },
    "cloneSource": {
      "type": "number",
      "x-khp-types": [
        "Layer"
      ]
    },
    "cloneTime": {
      "type": "number"
    },
    "cloneTimeShift": {
      "type": "number"
    },
    "color": {
      "type": "string"
    },
    "customFrames": {
      "type": "integer"
    },
    "diameter": {
      "type": "number"
    },
    "durationMode": {},
    "eraseMode": {},
    "flow": {
      "type": "number"
    },
    "flowPressure": {
      "type": "boolean"
    },
    "hardness": {
      "type": "number"
    },
    "lockSourceTime": {
      "type": "boolean"
    },
    "minSize": {
      "type": "number"
    },
    "mode": {
      "type": "string"
    },
    "name": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "opacity": {
      "type": "number"
    },
    "opacityPressure": {
      "type": "boolean"
    },
    "overlayDifference": {
      "type": "boolean"
    },
    "overlayOpacity": {
      "type": "number"
    },
    "preset": {
      "type": "string"
    },
    "reset": {
      "type": "boolean"
    },
    "roundness": {
      "type": "number"
    },
    "showOverlay": {
      "type": "boolean"
    },
    "sizePressure": {
      "type": "boolean"
    },
    "spacing": {
      "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.