Int Passthrough
A wire that just carries an integer — Int Passthrough
- int
Let's be honest about what this is: a wire with a socket on it. wcx_IntPassthrough takes an integer in and hands the same integer back out. No math, no conversion, no caching tricks. It's the "Int" member of this pack's family of typed passthrough nodes (there's also Mask, Latent, Text, Model, VAE, and the rest), and its entire job is to make your graph readable.
If that sounds useless, consider the actual failure it fixes. You have a seed, or a batch count, or a start_index, that needs to reach three different places. You can drag three separate wires across a graph that's already a spaghetti factory - or you can route the value once through an Int Passthrough and let downstream wires branch off a tidy little node. That's the "one source, many consumers" pattern from the KB's node-plumbing doc, and it's the same idea as converting a widget to an input and dropping a value node onto it, just expressed as a reroute.
The input is a single optional int socket (declared forceInput, so it accepts wired values), and the output is int. Nothing else. If you leave the input unwired, you get None out - which, conveniently, is exactly what downstream optional inputs expect to see when they're meant to be skipped.
Three honest notes before you build a whole workflow around it:
- It doesn't store anything. If you want a node with a number field you can type into, that's the core
Intprimitive (orPrimitiveInt), not this. This node reroutes an existing value; it doesn't mint one. - No validation. You feed it an int, you get an int. There's nothing to get wrong, which is the point, but also nothing to catch.
- It's cosmetic plumbing. If you only have one consumer, wiring through this adds nothing except a named spot in the graph. Use it to organize, not to be clever.
Install is the pack standard - light, no dependencies, no models:
# ComfyUI Manager: search "ComfyUI-Practical-Tools" → Install → restart
# or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/wenchengxiang/ComfyUI-Practical-Tools
# restart ComfyUI
That's the whole node. It's not going to blow your mind, but when your graph hits fifty nodes and every wire looks the same, a couple of labeled passthroughs are exactly what turns "what feeds what" into something you can answer at a glance.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| intopt | INT | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int | INT | — |