Photo kit command
layer.layerStyle.bevelEmboss
Bevel & Emboss…
Sets the Bevel & Emboss layer effect on the active layer (or `layer`): style, technique, contour, contourRange, texture, textureScale.
- 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 |
|---|---|---|---|
add | boolean | no | |
altitude | number | no | degrees |
angle | number | no | degrees |
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. |
contour | boolean | no | |
contourRange | integer (≥ 1, ≤ 100) | no | 1 to 100 |
depth | integer | no | 1 to 1000 |
direction | "up" | "down" | 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. |
size | number | no | pixels |
soften | number | no | pixels |
style | "inner" | "outer" | "emboss" | "pillow" | "stroke" | no | |
technique | "smooth" | "chiselHard" | "chiselSoft" | no | |
texture | any | no | pattern id|name? |
textureDepth | integer (≥ -1000, ≤ 1000) | no | -1000 to 1000 |
textureInvert | boolean | no | |
textureLink | boolean | no | |
textureScale | integer (≥ 1, ≤ 1000) | no | 1 to 1000 |
Call through photo_run
text
photo_run {
"path": "<file>.psd",
"steps": [{ "command": "layer.layerStyle.bevelEmboss" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: add, altitude, angle, at, coalesce, contour, contourRange, depth, direction, layer, size, soften, style, technique, texture, textureDepth, textureInvert, textureLink, textureScale. photo_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": {
"add": {
"type": "boolean"
},
"altitude": {
"description": "degrees",
"type": "number"
},
"angle": {
"description": "degrees",
"type": "number"
},
"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"
},
"contour": {
"type": "boolean"
},
"contourRange": {
"default": 50,
"description": "1 to 100",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"depth": {
"default": 100,
"description": "1 to 1000",
"type": "integer"
},
"direction": {
"enum": [
"up",
"down"
],
"type": "string"
},
"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"
]
},
"size": {
"default": 5,
"description": "pixels",
"type": "number"
},
"soften": {
"description": "pixels",
"type": "number"
},
"style": {
"enum": [
"inner",
"outer",
"emboss",
"pillow",
"stroke"
],
"type": "string"
},
"technique": {
"enum": [
"smooth",
"chiselHard",
"chiselSoft"
],
"type": "string"
},
"texture": {
"description": "pattern id|name?",
"x-khp-name": "name",
"x-khp-types": []
},
"textureDepth": {
"default": 100,
"description": "-1000 to 1000",
"maximum": 1000,
"minimum": -1000,
"type": "integer"
},
"textureInvert": {
"type": "boolean"
},
"textureLink": {
"default": true,
"type": "boolean"
},
"textureScale": {
"default": 100,
"description": "1 to 1000",
"maximum": 1000,
"minimum": 1,
"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.