Photo kit command
filter.distort.wave
Wave…
Displaces (active pixel layer, inside the selection if any) with summed waves: `generators` count, wavelength and amplitude ranges in px, `type` sine/triangle/square; `undefinedAreas` wrap or repeat edge pixels.
- Kit
- Photo 0.1.0 (PSD, PSB, or .kphoto)
- Changes the document
- yes
- Acts on
layer(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amplitudeMax | integer | no | 1 to 999 |
amplitudeMin | integer | no | 1 to 998 |
at | number[] | no | Instead of `layer`: a point [x, y] in image pixels; the command acts on the topmost visible layer, not fully locked, with a pixel there (the Move tool's Auto-Select). |
coalesce | string | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
generators | integer | no | 1 to 999 |
layer | integer | string | no | The layer: its id as inspect lists it, "#n" (the n-th layer of the image's top level as inspect lists it, counted from the top: "#1" is the top one), or its whole name when no other layer has it; the active layer by default. |
region | object | no | Where the command acts, for this call only: {"rect": [x, y, width, height]}, {"ellipse": [x, y, width, height]}, {"polygon": [[x, y], …]} (3 points or more), {"layer": id} (that layer's pixels, by their opacity), {"channel": name or index} (a saved selection or alpha channel), or "all"; add "invert": true to take everything else. Without it, inside the current selection (made with select.* earlier in the run), or everywhere when there is none. |
seed | integer | no | |
target | string | object | no | Where the pixels go: "pixels" (the layer, by default), "mask", "quickMask", or {"channel": i}. |
type | "sine" | "triangle" | "square" | no | |
undefinedAreas | "wrap" | "repeat" | no | |
wavelengthMax | integer | no | 2 to 999 |
wavelengthMin | integer | no | 1 to 998 |
Call through photo_run
photo_run {
"path": "<file>.psd",
"steps": [{ "command": "filter.distort.wave" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: amplitudeMax, amplitudeMin, at, coalesce, generators, layer, region, seed, target, type, undefinedAreas, wavelengthMax, wavelengthMin. photo_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"amplitudeMax": {
"default": 35,
"description": "1 to 999",
"type": "integer"
},
"amplitudeMin": {
"default": 5,
"description": "1 to 998",
"type": "integer"
},
"at": {
"description": "Instead of `layer`: a point [x, y] in image pixels; the command acts on the topmost visible layer, not fully locked, with a pixel there (the Move tool's Auto-Select).",
"items": {
"type": "number"
},
"type": "array"
},
"coalesce": {
"description": "Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.",
"type": "string"
},
"generators": {
"default": 5,
"description": "1 to 999",
"type": "integer"
},
"layer": {
"description": "The layer: its id as inspect lists it, \"#n\" (the n-th layer of the image's top level as inspect lists it, counted from the top: \"#1\" is the top one), or its whole name when no other layer has it; the active layer by default.",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-order": "reversed",
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"region": {
"description": "Where the command acts, for this call only: {\"rect\": [x, y, width, height]}, {\"ellipse\": [x, y, width, height]}, {\"polygon\": [[x, y], …]} (3 points or more), {\"layer\": id} (that layer's pixels, by their opacity), {\"channel\": name or index} (a saved selection or alpha channel), or \"all\"; add \"invert\": true to take everything else. Without it, inside the current selection (made with select.* earlier in the run), or everywhere when there is none.",
"properties": {
"channel": {
"x-khp-name": "name",
"x-khp-role": "object",
"x-khp-types": [
"Channel"
]
}
}
},
"seed": {
"default": 0,
"type": "integer"
},
"target": {
"description": "Where the pixels go: \"pixels\" (the layer, by default), \"mask\", \"quickMask\", or {\"channel\": i}.",
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
}
]
},
"type": {
"enum": [
"sine",
"triangle",
"square"
],
"type": "string"
},
"undefinedAreas": {
"enum": [
"wrap",
"repeat"
],
"type": "string"
},
"wavelengthMax": {
"default": 120,
"description": "2 to 999",
"type": "integer"
},
"wavelengthMin": {
"default": 10,
"description": "1 to 998",
"type": "integer"
}
},
"type": "object",
"x-khp-position": "independent"
}Generated from the command list of @kition/[email protected] and the kit itself (photo_commands through @kition/[email protected], built from KitionAI/kition-photo@abe3f30). As data: commands.jsonl.