BBox Prompt Reroute
A wire tidier for SAM3 box prompts, and not much else
- bboxes
- neg_bboxes
- bboxes
- neg_bboxes
Honest pitch up front: BBox Prompt Reroute does zero processing. It's a pass-through node for SAM3_BOXES_PROMPT data - the object type that carries positive and negative bounding-box prompts around a SAM3 segmentation workflow. You feed it a positive set and a negative set, it hands them back unchanged, and your reward is that you can drag wires around without turning a beautiful box-prompt chain into a rat's nest.
That sounds trivial until you've built a SAM3 workflow. A good one has a bbox collector producing the positive boxes, a negative collector producing the "don't touch these" boxes, and both feeding several consumers - a segmenter here, a re-route to a detailer there. When you want to splice a new node into that line, you currently have to re-thread every wire. Drop this in as a breakpoint and you can re-point the downstream end without touching the collectors at all. It's the SAM3 equivalent of ComfyUI's built-in reroute, except it keeps the positive/negative pair together so you can't accidentally swap them.
How it works
Mechanically there's nothing to it. The class defines two optional inputs and returns them untouched. The one bit of real logic: if you leave an input disconnected, it emits an empty box-prompt structure instead of None, so whatever you've wired downstream doesn't blow up with a NoneType error on a half-built workflow. That empty-None protection is the whole reason the node exists beyond aesthetics - wire it in early, fill the collectors later.
The inputs and outputs that matter
bboxes- positive bbox prompt to pass through.neg_bboxes- negative bbox prompt to pass through.
Both outputs, bboxes and neg_bboxes, are the same SAM3_BOXES_PROMPT type, so they plug straight back into any SAM3 node that consumes box prompts - segmenters, collectors, or the DAELab pack's own SAM3 Complex Collector.
How to install it
Standard for this pack - ComfyUI Manager, search "ComfyUI-DAELab-Custom-Nodes-Library", or:
cd ComfyUI/custom_nodes
git clone https://github.com/TeutonicMepheles/ComfyUI-DAELab-Custom-Nodes-Library
then restart. No models, no dependencies. But here's the practical caveat: the SAM3_BOXES_PROMPT type only exists because some node defines it, which means to get any use out of this reroute you need the SAM3 ecosystem installed alongside it - comfyui-sam3 plus a SAM3 model. The DAELab pack treats comfyui-sam3 as an optional soft dependency, so install it too or this node has nothing to reroute.
Common issues & troubleshooting
"I wired it and nothing came out." Check that you connected it between real SAM3 box-prompt producers. It passes through whatever it's given - it doesn't invent boxes. An empty input means an empty (not None) output by design.
Wrong socket type / can't connect. You're trying to feed it something that isn't a SAM3_BOXES_PROMPT. Box prompts come out of SAM3 bbox collectors, not the pack's interactive collectors, which use a different internal format.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| bboxesopt | SAM3_BOXES_PROMPT | Positive bbox prompt to pass through. | |
| neg_bboxesopt | SAM3_BOXES_PROMPT | Negative bbox prompt to pass through. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| bboxes | SAM3_BOXES_PROMPT | — |
| neg_bboxes | SAM3_BOXES_PROMPT | — |