🔹 Photoshop RemoteConnection
Photoshop to ComfyUI without installing a plugin
- Photoshop Canvas
- Mask
Most of this pack's magic needs you to install a UXP plugin inside Photoshop. "🔹 Photoshop RemoteConnection" is the escape hatch: a standalone node that talks to Photoshop over a plain local socket and never touches the plugin system at all. If you're allergic to .ccx files and ZXP installers, this is your on-ramp.
What it is
RemoteConnection connects straight into a socket server running inside Photoshop, drives it with ExtendScript (Photoshop's own scripting language), saves the active document to a temp JPEG, and - if you want - builds a mask from the current selection. Then it reads those files back and hands you two outputs:
- Photoshop Canvas (IMAGE) - the active document.
- Mask (MASK) - your selection, if you asked for it.
So it does roughly what the flagship node does, minus the real-time websocket plumbing: grab the canvas, grab the selection, hand both to your workflow.
The inputs that matter
Four inputs, all defaults, and three of them are about the connection:
- Selection_To_Mask (BOOLEAN, default false) - also capture your selection as a mask. This is the one you'll actually toggle.
- password (default
12341234), Server (default127.0.0.1), port (default49494) - these have to match the socket listener running inside Photoshop, exactly, or the node just fails to connect.
The mechanism, and the catch
The node relies on the photoshop-connection Python package. First time you run it, if that import fails, it uninstalls anything named photoshop or photoshop-connection and reinstalls photoshop-connection - which is a slightly alarming thing to watch your node do, and a real landmine if some other tool on your machine depends on a package literally named photoshop. Then it connects, runs a small ExtendScript that saves your document (and optionally paints a black/white mask from the selection bounds into a temp file), and reads the JPEGs back as tensors.
Here's the honest part: the README never mentions this node. The supported, documented path for this pack is the UXP plugin. RemoteConnection is the older socket-based approach that the author kept around - it works, but it's the rough edge of the pack. Two things to expect:
- With Selection_To_Mask off, the Mask output is a 1×1 black tensor - a placeholder, not a real mask. Don't wire it up and wonder why your inpaint does nothing.
- The port and password are plain strings. Typos are the most common failure, and there's no in-UI error telling you which side mismatched - check that the listener is actually running in Photoshop first.
Installing it
It ships with the pack, so the install is the same as everything else:
cd ComfyUI/custom_nodes
git clone https://github.com/NimaNzrii/comfyui-photoshop
or ComfyUI Manager → search comfyui-photoshop → install → restart. No .ccx, no ZXP installer - that's the whole point of the node. The one thing you do need is the Photoshop-side socket listener that photoshop-connection expects, matching the host/port/password defaults. If that part isn't set up, this node will never light up, and no amount of node-side fiddling fixes it.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| Selection_To_Mask | BOOLEAN | false | — |
| password | STRING | 12341234 | — |
| Server | STRING | 127.0.0.1 | — |
| port | STRING | 49494 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| Photoshop Canvas | IMAGE | — |
| Mask | MASK | — |