Photo kit command
image.rotation.arbitrary
Arbitrary…
Rotates the whole canvas and every layer by `angle` degrees in `direction`; the canvas grows to fit.
- Kit
- Photo 0.1.0 (PSD, PSB, or .kphoto)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
angle | number | no | -359.99 to 359.99 |
backgroundColor | string | no | The background color the command uses, "#rrggbb", for this call only; the current background color by default. |
coalesce | string | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
direction | "cw" | "ccw" | no | |
foregroundColor | string | no | The foreground color the command uses, "#rrggbb", for this call only; the current foreground color by default. |
interpolation | "bicubic" | "bilinear" | "nearest" | no |
Call through photo_run
text
photo_run {
"path": "<file>.psd",
"steps": [{ "command": "image.rotation.arbitrary" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: angle, backgroundColor, coalesce, direction, foregroundColor, interpolation. 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": {
"angle": {
"default": 0,
"description": "-359.99 to 359.99",
"type": "number"
},
"backgroundColor": {
"description": "The background color the command uses, \"#rrggbb\", for this call only; the current background color by default.",
"type": "string"
},
"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"
},
"direction": {
"default": "cw",
"enum": [
"cw",
"ccw"
],
"type": "string"
},
"foregroundColor": {
"description": "The foreground color the command uses, \"#rrggbb\", for this call only; the current foreground color by default.",
"type": "string"
},
"interpolation": {
"default": "bicubic",
"enum": [
"bicubic",
"bilinear",
"nearest"
],
"type": "string"
}
},
"type": "object"
}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.