Nodes/tdxh_node_comfyui/TdxhToggleMaster
ComfyUI Node

TdxhToggleMaster

One boolean, three outputs, zero fuss

By youyegit·Created 3 years ago·Updated 5 months ago· 2
TdxhToggleMaster
    • BOOLEAN
    • NUMBER
    • INT
    booleantrue

    TdxhToggleMaster is a single boolean checkbox with three outputs: BOOLEAN, NUMBER, and INT, all carrying the same value. That's the entire node. It computes nothing and generates nothing - it exists because ComfyUI's type system is a mess and one checkbox should be able to feed any of it.

    Here's the scenario that makes it worth a node slot. TDXH's efficiency nodes (LoRA loader, ControlNet apply, reference) take bool_int inputs - plain 0/1 integers. Core and many modern nodes want BOOLEAN. A few picky custom nodes want NUMBER. If you have a single switch that's supposed to drive all three, you either stack conversion nodes or you grab this thing and fan its outputs out. One checkbox, three typed wires, no converters.

    Its real home is the master/guest pattern the pack is built around. Wire TdxhToggleMaster's output into the boolean_from_master input of a bunch of TdxhToggleGuest nodes, and this one switch controls whether any of them can be on - a master kill for a whole branch of your graph. Flip it off and every guest below it goes dead regardless of their local setting; flip it on and control returns to each guest's own checkbox. That's a surprisingly pleasant way to A/B a whole sub-workflow: instead of muting five nodes one at a time, you mute them all with one click.

    Installing it

    Part of the tdxh_node_comfyui pack, so one install gets you all sixteen nodes. ComfyUI Manager → search tdxh_node_comfyui → install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/youyegit/tdxh_node_comfyui
    

    Restart ComfyUI and it's under TDXH → tdxh_bool. No models, no heavy dependencies. It's a hobbyist pack (GPL-3.0, tiny) and the README warns that nodes can change between versions - for a node this trivial, that risk is basically zero.

    When to skip it

    If all you need is a 0/1 integer, TdxhOnOrOff or a core "Boolean To Int" node does the job. TdxhToggleMaster earns its place when you're building master/guest hierarchies or when you're tired of type-mismatch errors between your switch and your nodes. Otherwise it's a checkbox - nice, but nothing to write home about.

    CategoryTDXH/tdxh_bool

    Inputs (1)

    NameTypeDefaultDescription
    booleanBOOLEANtrue

    Outputs (3)

    NameTypeDescription
    BOOLEANBOOLEAN
    NUMBERNUMBER
    INTINT