Motion kit command
mask.featherPoint.add
Add Mask Feather Point
Mask Feather tool: add a feather point on the path, by `segment`/`t` or at the path position nearest `point` (layer space). Without `radius`, a `point` off the path sets it from its distance (outside the mask = outer feather, inside = inner).
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
- Acts on
layer(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
layer | integer | string | no | |
mask | integer | no | |
point | number[] | no | layer space |
radius | number | no | px, negative = inner |
segment | integer | no | |
t | number | no | 0 to 1 |
tension | number | no | % |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "mask.featherPoint.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: layer, mask, point, radius, segment, t, tension. 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": {
"layer": {
"oneOf": [
{
"description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
"type": "integer"
},
{
"description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-numbers": true,
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"mask": {
"type": "integer"
},
"point": {
"description": "layer space",
"items": {
"type": "number"
},
"type": "array"
},
"radius": {
"description": "px, negative = inner",
"type": "number"
},
"segment": {
"type": "integer"
},
"t": {
"description": "0 to 1",
"type": "number"
},
"tension": {
"description": "%",
"type": "number"
}
},
"returns": "{index}",
"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.