Photo kit command

brush.presets.move

Move Brush

Moves brush preset `name` to another `group` or nested `folder`, before a given preset or at `index`.

Kit
Photo 0.1.0 (PSD, PSB, or .kphoto)
Changes the document
yes

Parameters

Parameters of brush.presets.move
NameTypeRequiredDescription
beforestringnopreset to land before, in that folder; one of several alternative parameters
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
folderstring[]nonested folder names in the group, outermost first; [] = the group itself; default: before's folder, else its own if it stays in its group, else []
groupstringnostring?=its group ("" = ungrouped); "" = ungrouped; default its group
indexintegernon? (position in the group)=end of the folder; position in the group; default end of the folder; one of several alternative parameters
namestringno

Call through photo_run

text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "brush.presets.move" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: before, coalesce, folder, group, index, name. 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": {
    "before": {
      "description": "preset to land before, in that folder; one of several alternative parameters",
      "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"
    },
    "folder": {
      "description": "nested folder names in the group, outermost first; [] = the group itself; default: before's folder, else its own if it stays in its group, else []",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "group": {
      "description": "string?=its group (\"\" = ungrouped); \"\" = ungrouped; default its group",
      "type": "string"
    },
    "index": {
      "description": "n? (position in the group)=end of the folder; position in the group; default end of the folder; one of several alternative parameters",
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  },
  "returns": "{name, group, folder, index}",
  "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.