Nodes/ComfyUI-Danbooru-Gallery/组是否启用 (Group Is Enabled)
ComfyUI Node

组是否启用 (Group Is Enabled)

Turn a group's mute toggle into a boolean you can actually wire up

By Aaalice233·Created 11 months ago·Updated 24 days ago· 224
组是否启用 (Group Is Enabled)
    • is_enabled
    group_name

    This is the one node in this pack's group-management trio that actually has graph I/O, and it exists specifically to bridge the other two. Group Mute Manager and Group Ignore Manager are pure UI panels - clicking around, no data flowing through wires. Group Is Enabled turns one piece of that UI state into a real boolean output you can wire into logic elsewhere in your graph.

    Why that's useful

    A mute toggle on its own only controls whether a group runs. It doesn't, by itself, let the rest of your workflow know or react to which groups are currently switched on - say, you want a different final caption, filename suffix, or post-processing branch depending on whether an optional "detail pass" group is currently enabled. Without this node, that decision lives only in your head as you look at the canvas. With it, the current on/off state of a specific managed group becomes a value your graph can actually branch on - feed it into something like Simple Value Switch or an Enum Switch from this same pack, and you've got UI toggles driving real conditional logic instead of just turning subgraphs on and off.

    How it works

    The single required field is group_name - a plain string, and its tooltip is explicit that this should be a group already managed by Group Mute Manager. Type or select the exact name of that group, and the node reports whether it's currently enabled (i.e., not muted).

    The inputs and outputs that matter

    • group_name (required, STRING, default empty) - the name of the group to check, as managed by Group Mute Manager.
    • is_enabled (output, BOOLEAN) - true if that group is currently enabled, false if it's muted.

    That's the entire node: one string in, one boolean out.

    How to install it

    ComfyUI Manager: search "ComfyUI-Danbooru-Gallery", install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Aaalice233/ComfyUI-Danbooru-Gallery.git
    cd ComfyUI-Danbooru-Gallery
    pip install -r requirements.txt
    

    Restart ComfyUI.

    Common issues & troubleshooting

    Output doesn't match what you see on the canvas. The most likely cause is a mismatched group_name - this is a plain string field, so a typo, extra whitespace, or case mismatch against the actual group's name will silently produce a wrong (or default) result rather than an error. Double-check the exact name against the group as it's labeled in Group Mute Manager's panel.

    Node reports enabled/disabled but the group isn't managed by Group Mute Manager at all. Per the field's own tooltip, this node is built to check groups managed by Group Mute Manager specifically - if you're trying to check a group's ignore/bypass state (managed by the pack's separate Group Ignore Manager) rather than its mute state, this node's documented scope doesn't cover that, and results in that case aren't guaranteed.

    Node doesn't show up in the menu. Standard pack-load check: confirm the repo is at ComfyUI/custom_nodes/ComfyUI-Danbooru-Gallery, dependencies installed cleanly, and check the ComfyUI console at startup for an import error.

    Categorydanbooru

    Inputs (1)

    NameTypeDefaultDescription
    group_nameSTRING选择被组静音管理器管理的组

    Outputs (1)

    NameTypeDescription
    is_enabledBOOLEAN