TdxhToggleGuest
A per-branch switch that defers to the master
- BOOLEAN
- NUMBER
- INT
TdxhToggleGuest is the boolean member of the TDXH master/guest toggle family - same idea as TdxhBoolNumber, but with real checkboxes instead of 0/1 integers, which makes it the one you'll probably prefer if you've got a recent ComfyUI.
Three BOOLEAN inputs: boolean (your local switch), boolean_from_master (wire this to a TdxhToggleMaster), and control_by_master (the gate). The logic is dead simple:
control_by_masteroff (default): output is whateverbooleanis. The node is just a pass-through with a checkbox.control_by_masteron: output isboolean AND boolean_from_master. Both have to be true for the output to be true.
That's the whole trick, and it's the useful one. ComfyUI has no built-in "one switch kills this whole group" concept, and this is how you fake it. Put a TdxhToggleMaster at the top of your graph, wire its output into the boolean_from_master of several guests, and now the master switch disables every branch it feeds while each guest still has its own local override. Kill an entire LoRA + ControlNet chain with one click, then re-enable the whole thing the same way. No deleting, no rewiring, no remembering what was connected where.
The three outputs - BOOLEAN, NUMBER, INT - all carry the same value in different types. That's the practical genius of it: one node can drive a boolean-typed input on a modern node, a bool_int on a TDXH node, and a numeric condition, all at once. You don't need type-conversion nodes anywhere in the chain.
Installing it
Part of the tdxh_node_comfyui pack. ComfyUI Manager → search tdxh_node_comfyui → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/youyegit/tdxh_node_comfyui
Restart and it's under TDXH → tdxh_bool. Small hobbyist pack (GPL-3.0), and the README warns the author doesn't guarantee nodes stay stable between versions. No models needed for this one.
When to skip it
If you're not building master/guest hierarchies, this node is a checkbox with extra steps - a core toggle does the same thing. But if you have a large workflow you keep muting sections of, the master/guest pair is a tidy pattern and TdxhToggleGuest is the piece that makes it work.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| boolean | BOOLEAN | true | — |
| boolean_from_master | BOOLEAN | true | — |
| control_by_master | BOOLEAN | false | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |
| NUMBER | NUMBER | — |
| INT | INT | — |