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

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

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `aligned` | `boolean` | no |  |
| `angle` | `number` | no |  |
| `background` | `string \| number[]` | no |  |
| `channels` | `string` | no |  |
| `cloneOffset` | `any[]` | no |  |
| `clonePoint` | `any` | no |  |
| `clonePreset` | `integer` | no |  |
| `cloneSource` | `number` | no |  |
| `cloneTime` | `number` | no |  |
| `cloneTimeShift` | `number` | no |  |
| `color` | `string` | no |  |
| `customFrames` | `integer` | no |  |
| `diameter` | `number` | no |  |
| `durationMode` | `any` | no |  |
| `eraseMode` | `any` | no |  |
| `flow` | `number` | no |  |
| `flowPressure` | `boolean` | no |  |
| `hardness` | `number` | no |  |
| `lockSourceTime` | `boolean` | no |  |
| `minSize` | `number` | no |  |
| `mode` | `string` | no |  |
| `name` | `string` | no | read by the command beside its listed parameters |
| `opacity` | `number` | no |  |
| `opacityPressure` | `boolean` | no |  |
| `overlayDifference` | `boolean` | no |  |
| `overlayOpacity` | `number` | no |  |
| `preset` | `string` | no |  |
| `reset` | `boolean` | no |  |
| `roundness` | `number` | no |  |
| `showOverlay` | `boolean` | no |  |
| `sizePressure` | `boolean` | no |  |
| `spacing` | `number` | no |  |

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