Scene kit command
particleEdit.stroke
Groom Stroke
Grooms hair along `points` with a brush.
- Kit
- Scene 0.1.0 (.kscene)
- 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/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.