---
title: "particleEdit.stroke: Groom Stroke — Scene kit command — Kition"
description: "Grooms hair along `points` with a brush."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/particleEdit.stroke"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/particleEdit.stroke](https://developer.kition.ai/docs/kits/scene/commands/particleEdit.stroke)

# particleEdit.stroke

**Groom Stroke.** Grooms hair along `points` with a brush.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `"comb" \| "cut" \| "length" \| "puff" \| "smooth"` | no | The grooming brush |
| `points` | `any[]` | yes | The stroke's path: [x, y] viewport pixels |
| `radius` | `number` | no | Radius in viewport pixels (50) |
| `strength` | `number` | no | Strength, 0 to 1 (0.5) |
| `subtract` | `boolean` | no | Length and puff the other way: shorten, flatten |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "particleEdit.stroke", "params": { "points": <any[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `kind`, `radius`, `strength`, `subtract`. scene_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": {
    "kind": {
      "description": "The grooming brush",
      "enum": [
        "comb",
        "cut",
        "length",
        "puff",
        "smooth"
      ],
      "type": "string"
    },
    "points": {
      "description": "The stroke's path: [x, y] viewport pixels",
      "items": {},
      "type": "array"
    },
    "radius": {
      "description": "Radius in viewport pixels (50)",
      "type": "number"
    },
    "strength": {
      "description": "Strength, 0 to 1 (0.5)",
      "type": "number"
    },
    "subtract": {
      "description": "Length and puff the other way: shorten, flatten",
      "type": "boolean"
    }
  },
  "required": [
    "points"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
