Photo kit command

layer.layerStyle.transferEffects

Move Layer Effects

Moves the layer effects of layer `from` to layer `to` (dragging fx in the Layers panel); all of them by default, replacing `to`'s style, or only the one at index `effect`, replacing `to`'s effect of that kind; with `copy` they stay on `from` too.

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

Parameters

Parameters of layer.layerStyle.transferEffects
NameTypeRequiredDescription
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
copybooleanno
effectintegernoa position counted from 0 (the first is 0); default: all effects
fromintegerno
tointegerno

Call through photo_run

text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "layer.layerStyle.transferEffects" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: coalesce, copy, effect, from, to. 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": {
    "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"
    },
    "copy": {
      "default": false,
      "type": "boolean"
    },
    "effect": {
      "description": "a position counted from 0 (the first is 0); default: all effects",
      "type": "integer"
    },
    "from": {
      "type": "integer"
    },
    "to": {
      "type": "integer"
    }
  },
  "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.