Nodes/ComfyUI-Custom-Scripts/Reroute Primitive 🐍
ComfyUI Node Runs on cloud

Reroute Primitive 🐍

Why you can't find this node in the Add Node menu

By pythongosssssΒ·Created 3 years agoΒ·Updated 6 months agoΒ· 3,150
Reroute Primitive 🐍
  • value
  • *

If you're here because you opened someone else's workflow, saw this node sitting in it, and then couldn't find it anywhere in the right-click Add Node search - you're not missing something. This node's category is deliberately __hidden__. ComfyUI-Custom-Scripts keeps it out of the normal add-node list on purpose; you only get one by loading a workflow that already has it, or through the pack's own right-click "convert" actions on an existing primitive.

It comes from pythongosssss's ComfyUI-Custom-Scripts pack, and the README itself flags it as (Testing) - this is the one node in the pack you should treat as genuinely early-stage rather than a stable everyday tool.

What a "primitive" even is

Quick background if the term's unfamiliar: in ComfyUI, right-click an unconnected widget - say, a KSampler's steps field - and choose "Convert to Input," and it spawns a standalone Primitive node holding just that one value. You can then wire that single Primitive to the same widget on several other nodes at once, so one dial drives multiple places in your graph instead of you manually keeping five copies of the same number in sync.

What this node adds

Reroute Primitive is a reroute that specifically understands it's carrying a primitive value rather than a generic wire. Stock Reroute nodes (and the stock Primitive node) exist purely to tidy up a spaghetti graph without changing what flows through - this one does the same job, scoped to primitives, with one nice trick: it can collapse to a single small dot you drag freely around the canvas, instead of taking up a full node's worth of space.

The interface is intentionally minimal - one wildcard value in, the same wildcard back out, no transformation of any kind. It's pure routing.

The warning worth repeating

The README states this directly, and it's worth repeating rather than glossing over: don't mix normal Reroute or Primitive nodes with this one in the same workflow. It isn't tested against that combination, and this node is meant to replace their functionality where you use it, not sit alongside them. Pick one system per graph.

Installing it

  • ComfyUI Manager - search "ComfyUI-Custom-Scripts", install, restart.
  • Manual - cd ComfyUI/custom_nodes && git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts, restart.

No models, no extra dependencies.

Common issues

Can't add it manually from the node search. That's the __hidden__ category doing exactly what it's meant to. Get it into a graph by loading a workflow that already uses it, or via the pack's own right-click conversion on an existing primitive - not by typing its name into Add Node.

Something's acting strange after mixing it with stock Reroute or Primitive nodes. That's the exact combination the README warns against. Untangle the graph so it uses one system consistently, rather than both at once.

The collapsed dot is hard to find or click again. That's the intended compact display. Right-click it to expand back to full size if you need to see or edit its wiring clearly.

Anything else looks off. Given the (Testing) label, treat rough edges here as expected rather than assuming you've broken something - this is the least battle-tested node in an otherwise mature pack.

Category__hidden__

Inputs (1)

NameTypeDefaultDescription
value*β€”

Outputs (1)

NameTypeDescription
**β€”