Photo kit command
filter.rawDevelop
Raw Develop Filter…
Applies Raw Develop-style tone and color controls (active pixel layer, inside the selection if any): exposure, contrast, highlights, shadows, whites, blacks, clarity, vibrance, saturation, tone curve, temperature and tint.
- 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 |
|---|---|---|---|
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). |
blacks | integer | no | -100 to 100 |
clarity | integer | no | -100 to 100 |
coalesce | string | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
contrast | integer | no | -100 to 100 |
curveDarks | integer | no | -100 to 100 |
curveHighlights | integer | no | -100 to 100 |
curveLights | integer | no | -100 to 100 |
curveShadows | integer | no | -100 to 100 |
curveSplits | number[] | no | [25, 50, 75] |
dehaze | integer | no | -100 to 100 |
exposure | integer | no | -5 to 5 |
gradeBalance | integer | no | -100 to 100 |
gradeBlending | integer | no | 0 to 100 |
gradeGlobal | object | no | |
gradeHighlights | object | no | |
gradeMidtones | object | no | |
gradeShadows | object | no | |
grainAmount | integer | no | 0 to 100 |
grainRoughness | integer | no | 0 to 100 |
grainSize | integer | no | 0 to 100 |
highlights | integer | no | -100 to 100 |
hslHue | integer[] | no | |
hslLum | integer[] | no | |
hslSat | integer[] | no | |
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. |
noiseColor | integer | no | 0 to 100 |
noiseColorDetail | integer | no | 0 to 100 |
noiseLuminance | integer | no | 0 to 100 |
noiseLuminanceDetail | integer | no | 0 to 100 |
pointCurve | number[][] | no | |
pointCurveBlue | number[][] | no | |
pointCurveGreen | number[][] | no | |
pointCurveRed | number[][] | no | |
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. |
saturation | integer | no | -100 to 100 |
seed | integer | no | |
shadows | integer | no | -100 to 100 |
sharpenAmount | integer | no | 0 to 150 |
sharpenDetail | integer | no | 0 to 100 |
sharpenMasking | integer | no | 0 to 100 |
sharpenRadius | number | no | 0.5 to 3 |
target | string | object | no | Where the pixels go: "pixels" (the layer, by default), "mask", "quickMask", or {"channel": i}. |
temperature | integer | no | -100 to 100 |
texture | integer | no | -100 to 100 |
tint | integer | no | -100 to 100 |
vibrance | integer | no | -100 to 100 |
vignetteAmount | integer | no | -100 to 100 |
vignetteFeather | integer | no | 0 to 100 |
vignetteHighlights | integer | no | 0 to 100 |
vignetteMidpoint | integer | no | 0 to 100 |
vignetteRoundness | integer | no | -100 to 100 |
vignetteStyle | "highlightPriority" | "colorPriority" | "paintOverlay" | no | |
whites | integer | no | -100 to 100 |
Call through photo_run
photo_run {
"path": "<file>.psd",
"steps": [{ "command": "filter.rawDevelop" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: at, blacks, clarity, coalesce, contrast, curveDarks, curveHighlights, curveLights, curveShadows, curveSplits, dehaze, exposure, gradeBalance, gradeBlending, gradeGlobal, gradeHighlights, gradeMidtones, gradeShadows, grainAmount, grainRoughness, grainSize, highlights, hslHue, hslLum, hslSat, layer, noiseColor, noiseColorDetail, noiseLuminance, noiseLuminanceDetail, pointCurve, pointCurveBlue, pointCurveGreen, pointCurveRed, region, saturation, seed, shadows, sharpenAmount, sharpenDetail, sharpenMasking, sharpenRadius, target, temperature, texture, tint, vibrance, vignetteAmount, vignetteFeather, vignetteHighlights, vignetteMidpoint, vignetteRoundness, vignetteStyle, whites. 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": {
"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"
},
"blacks": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"clarity": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"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"
},
"contrast": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"curveDarks": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"curveHighlights": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"curveLights": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"curveShadows": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"curveSplits": {
"description": "[25, 50, 75]",
"items": {
"type": "number"
},
"type": "array"
},
"dehaze": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"exposure": {
"default": 0,
"description": "-5 to 5",
"type": "integer"
},
"gradeBalance": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"gradeBlending": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"gradeGlobal": {
"additionalProperties": true,
"type": "object"
},
"gradeHighlights": {
"additionalProperties": true,
"type": "object"
},
"gradeMidtones": {
"additionalProperties": true,
"type": "object"
},
"gradeShadows": {
"additionalProperties": true,
"properties": {
"hue": {
"description": "degrees",
"type": "number"
},
"lum": {
"description": "-100 to 100",
"type": "integer"
},
"sat": {
"description": "0 to 100",
"type": "integer"
}
},
"type": "object"
},
"grainAmount": {
"default": 0,
"description": "0 to 100",
"type": "integer"
},
"grainRoughness": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"grainSize": {
"default": 25,
"description": "0 to 100",
"type": "integer"
},
"highlights": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"hslHue": {
"items": {
"default": 8,
"type": "integer"
},
"type": "array"
},
"hslLum": {
"items": {
"default": 8,
"type": "integer"
},
"type": "array"
},
"hslSat": {
"items": {
"default": 8,
"type": "integer"
},
"type": "array"
},
"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"
]
},
"noiseColor": {
"default": 0,
"description": "0 to 100",
"type": "integer"
},
"noiseColorDetail": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"noiseLuminance": {
"default": 0,
"description": "0 to 100",
"type": "integer"
},
"noiseLuminanceDetail": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"pointCurve": {
"items": {
"description": "[in, out]",
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"pointCurveBlue": {
"items": {
"description": "[in, out]",
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"pointCurveGreen": {
"items": {
"description": "[in, out]",
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"pointCurveRed": {
"items": {
"description": "[in, out]",
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"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"
]
}
}
},
"saturation": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"seed": {
"default": 0,
"type": "integer"
},
"shadows": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"sharpenAmount": {
"default": 0,
"description": "0 to 150",
"type": "integer"
},
"sharpenDetail": {
"default": 25,
"description": "0 to 100",
"type": "integer"
},
"sharpenMasking": {
"default": 0,
"description": "0 to 100",
"type": "integer"
},
"sharpenRadius": {
"default": 1,
"description": "0.5 to 3",
"type": "number"
},
"target": {
"description": "Where the pixels go: \"pixels\" (the layer, by default), \"mask\", \"quickMask\", or {\"channel\": i}.",
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
}
]
},
"temperature": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"texture": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"tint": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"vibrance": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"vignetteAmount": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"vignetteFeather": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"vignetteHighlights": {
"default": 0,
"description": "0 to 100",
"type": "integer"
},
"vignetteMidpoint": {
"default": 50,
"description": "0 to 100",
"type": "integer"
},
"vignetteRoundness": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"vignetteStyle": {
"enum": [
"highlightPriority",
"colorPriority",
"paintOverlay"
],
"type": "string"
},
"whites": {
"default": 0,
"description": "-100 to 100",
"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.