Nodes/AUN ComfyUI Nodes/Multi Bypass Index
ComfyUI Node

Multi Bypass Index

Flip between whole chunks of your workflow with one number

By loz2754·Created 8 months ago·Updated about 15 hours ago· 5
Multi Bypass Index
    • Selected Index
    slot_count20
    Index1
    node_ids_10
    node_ids_20
    node_ids_30
    node_ids_40
    node_ids_50
    node_ids_60
    node_ids_70
    node_ids_80
    node_ids_90
    node_ids_100
    node_ids_110
    node_ids_120
    node_ids_130
    node_ids_140
    node_ids_150
    node_ids_160
    node_ids_170
    node_ids_180
    node_ids_190
    node_ids_200

    Ever built a workflow where "style A" and "style B" are two entirely different chains - different upscaler, different refiner, different ControlNet - and you keep right-clicking and bypassing nodes by hand? That's the problem Multi Bypass Index exists for. You assign each variation a slot, give it a number, and the whole swap happens the moment you change the Index widget or feed it an INT from another node. It's the AUN take on a "preset switcher" for node sets, and once you've used it you'll resent every workflow that makes you click.

    What it actually does

    Under the hood it's a graph controller, not a data processor. You give it up to 20 sets of node IDs, one comma-separated list per slot. When you set Index to 3, every node listed in node_ids_3 gets marked active and everything in the other slots gets bypassed. The node pokes ComfyUI's frontend directly (via PromptServer events) to flip those states before the graph runs - same trick as rgthree's Fast Groups Bypasser, but keyed by ID instead of group name.

    The "exclusive" part is the whole point: exactly one set lives at a time. No forgetting to switch one back, because the node rewrites the whole state on every run. That also makes it trivially scriptable - wire an index output from any AUN Random/Select INT or a Text Index Switch into Index and you've got random or cycling variation presets.

    The inputs that matter

    • Index (INT, 1–20) - which set is active. This is the one you'll actually change, or wire from elsewhere.
    • slot_count (INT, 2–20) - how many of the 20 sets are visible and enforced. Extra slots just hide; they don't hold state.
    • node_ids_1node_ids_20 - comma-separated node IDs per set, e.g. 5,12,23.

    The only output is Selected Index (INT), mostly useful if you want downstream nodes to know which variant is live.

    The catch: you have to type node IDs, which is fiddly until you know where to look. AUN's tooltips point you at the settings toggle that shows each node's numeric ID on the canvas - turn that on before you start, because the numbers are positional and shift if you rebuild the graph. A node title is friendlier than an ID, and if you'd rather target by name, this pack's AUN Node Controller targets by title instead.

    Install

    One pack, same story for every AUN node. Either grab it in ComfyUI Manager (search "AUN ComfyUI Nodes"), or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
    

    Restart ComfyUI. The requirements.txt pulls in piexif, opencv-python-headless, imageio-ffmpeg, and requests - Manager handles those for you; if you cloned manually and hit a ModuleNotFoundError, pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt fixes it. No model files to download; this is a pure utility pack.

    Gotchas

    Because it's exclusive, the very first run may surprise you if you've left other nodes manually bypassed - the controller only touches what's in its sets. And remember slot_count is a hard ceiling: an Index above it is clamped, so if a set "disappears," check the count, not the wiring. If your real goal is muting (skip execution entirely) rather than bypassing (pass input through), the pack's Multi Mute Index is the same node with that semantic instead.

    CategoryAUN Nodes/Node Control

    Inputs (22)

    NameTypeDefaultDescription
    slot_countINT202–20Number of active slots (2-20). Extra slots are hidden.
    IndexINT11–20Select the index (1-20) to activate. Only node IDs from this set of nodes will be active; others will be bypassed.
    node_ids_1STRING0Comma-separated node IDs for set 1 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_2STRING0Comma-separated node IDs for set 2 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_3STRING0Comma-separated node IDs for set 3 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_4STRING0Comma-separated node IDs for set 4 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_5STRING0Comma-separated node IDs for set 5 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_6STRING0Comma-separated node IDs for set 6 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_7STRING0Comma-separated node IDs for set 7 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_8STRING0Comma-separated node IDs for set 8 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_9STRING0Comma-separated node IDs for set 9 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_10STRING0Comma-separated node IDs for set 10 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_11STRING0Comma-separated node IDs for set 11 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_12STRING0Comma-separated node IDs for set 12 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_13STRING0Comma-separated node IDs for set 13 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_14STRING0Comma-separated node IDs for set 14 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_15STRING0Comma-separated node IDs for set 15 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_16STRING0Comma-separated node IDs for set 16 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_17STRING0Comma-separated node IDs for set 17 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_18STRING0Comma-separated node IDs for set 18 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_19STRING0Comma-separated node IDs for set 19 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.
    node_ids_20STRING0Comma-separated node IDs for set 20 (e.g., '5,12,23'). Enable ID badges in settings to see IDs.

    Outputs (1)

    NameTypeDescription
    Selected IndexINT