SDPPP Select Layer And Run PS Action
Run a Photoshop action from inside ComfyUI
- layer_or_group
- layer_or_group
If you've ever wished ComfyUI could hand the image back to Photoshop and say "now do the boring export part," this is the node. It selects a layer in your open document and runs a Photoshop action on it - the same .atn action sets you already use by hand. It's an output node, so it's the last thing in a workflow, and its whole job is automation glue: generate in ComfyUI, send back, then trigger whatever post-processing Photoshop is good at.
How it works
You give it a LAYER handle and pick an action; on run it sends a runPhotoshopAction call to the PS plugin over the Socket.IO bridge, and Photoshop selects that layer in the document and executes the action on it. The clever part is the action dropdown: instead of typing an action name, the list is populated live from the actions actually available in your connected Photoshop - including the action sets, which you pick from. The node re-reads that list when Photoshop changes, so new actions you record show up without touching the workflow.
Inputs and outputs
- layer_or_group - the
LAYERto select and act on. Comes fromSDPPP Get Layer By ID, the group/list nodes, or the send nodes. - action - the Photoshop action (or action set) to run, from the live dropdown.
The output, layer_or_group, is just the same layer passed through - it's there so you can keep a wire going if you need the handle downstream. The real result happens in Photoshop, not in ComfyUI.
The automation pattern
This is the node that closes the loop for people running pipeline-ish work. Classic example: after Send Images To Photoshop puts your upscaled image on a new layer, this node selects that layer and runs an action that auto-saves a flattened copy or applies your standard final sharpening - every run, identical. It's also handy for batch work where the action normalizes each output the way your client expects. If you don't have a real action to run, though, this node does nothing visible - it's pure glue.
Install and gotchas
ComfyUI Manager, search sd-ppp (or git clone https://github.com/zombieyang/sd-ppp into ComfyUI/custom_nodes), restart - python-socketio and jsonpatch auto-install on first import. The Photoshop plugin comes from sdppp.zombee.tech as a .ccx (double-click with Creative Cloud, or rename to .zip and extract into the Photoshop Plug-ins folder).
The pack-wide trap: plugin and node pack must be on matching versions, or Photoshop won't connect ("version mismatch, please reinstall PS plugin"). If the action dropdown is empty, that's usually the version mismatch showing up before the error, or Photoshop having no actions loaded in the current action set. And one to keep in mind: running an action is a real side effect in your document - there's no undo node in ComfyUI. If you're testing a workflow, use a copy of the PSD first, because the action fires exactly as if you'd clicked it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| layer_or_group | LAYER | — | |
| action | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| layer_or_group | LAYER | — |