Auto-Photoshop-SD Seed
An integer node that exists so the API has something to grab
- s
Strip this node down and there's almost nothing there: one input (seed), one output (s), and no logic in between. It's a pass-through. Which raises the obvious question - why does a plain integer holder get its own node class instead of just using ComfyUI's built-in Primitive node?
The answer is the pack's whole reason for existing
The README walks through the intended workflow: build your graph in ComfyUI, save it as an "API Format" JSON, hand that file to the Auto-Photoshop-SD plugin, and the plugin fires requests at ComfyUI's API from inside Photoshop. To do anything useful with that saved workflow, the plugin needs to reach into the exported JSON and override specific values before every generation - the seed most of all. If your graph just has a KSampler with its own built-in seed widget, an external caller has to know which of a dozen numeric fields on which node is the right one to poke. Give the seed its own distinctly-named node class instead, and the plugin (or any script calling the API) can find it by class name every time, no graph archaeology required. APS_Seed, GetConfig, and this pack's other purpose-built nodes all serve that same role - stable, unambiguous targets for an external caller.
The details
seed accepts 0 up to roughly 1.8×10¹⁹ - that's 2⁶⁴−1, the standard ComfyUI seed ceiling, and the same range you'll see on this pack's GaussianLatentImage and ContentMaskLatent nodes. That consistency isn't an accident: keeping one seed range across every node in the pack means a single value from APS_Seed can feed any of them without a caller needing to know each node's individual limits. The output is named simply s, and it wires into anything downstream that wants an integer seed: GaussianLatentImage's seed input, ContentMaskLatent's seed input, or a KSampler with its seed widget converted to an input socket (right-click the widget → Convert to Input).
If you're not using the Photoshop plugin
Honestly, a core Primitive INT node does the identical job with less to learn. Reach for APS_Seed specifically when you're following an existing Auto-Photoshop-SD template graph, or building your own tool against the ComfyUI API and want the same "find it by class name" convenience the plugin relies on.
Installing it
ComfyUI Manager: search "Comfy-Photoshop-SD", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/AbdullahAlfaraj/Comfy-Photoshop-SD
Where people get burned
There's not much that goes wrong with a number, but the one real gotcha is wiring: dropping APS_Seed into your graph does nothing on its own unless you've actually converted the receiving node's seed widget to an input and connected s to it. Leave a KSampler's seed as its own widget and this node just sits there unused, quietly disconnected from anything.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| s | INT | — |