Nodes/AUN ComfyUI Nodes/Get Active Node Title
ComfyUI Node

Get Active Node Title

Tell me which of these branches actually ran

By loz2754·Created 8 months ago·Updated about 22 hours ago· 5
Get Active Node Title
    • active_title
    node_titles

    When you build a workflow with bypass branches - the pack's whole selling point - you end up with several nodes where only one is active at a time. AUNGetActiveNodeTitle answers the obvious follow-up question: which one? You hand it a comma-separated list of node titles, and it outputs the title of the first node in that list that is currently active (not bypassed) in the workflow. It's a tiny string output that keeps your automation honest about what actually happened.

    The single required input is node_titles - a comma-separated list, checked in order. The node reads the workflow graph, finds each node by title, checks its mode (in ComfyUI terms, mode 0 means active; bypassed nodes are excluded), and returns the first match. If nothing in the list is active, you get an empty string back.

    The obvious use: you have three sampler variants - "HQ", "Fast", "Draft" - and you bypass all but one depending on what you're rendering. Wire this node with HQ,Fast,Draft and its active_title output tells you which branch ran. Feed that string into a filename token or a Show Text node and your saved image literally names its own configuration. Pair it with the pack's bypass controllers (which set those bypass states) and you've got a self-documenting pipeline: a switch flips the branch, this node reports the branch, the filename records it.

    It also slots into the pack's "label" pattern - because it returns a title string, you can branch that string into a AUNBoolean-style label slot, a Show Text With Title node, or directly into the AUNPathFilenameV2 filename template. One string, several destinations.

    A couple of practical notes. Titles are case-sensitive matches against what you actually named the nodes - if you rename a node, update the list, or you'll silently get an empty string instead of an error. And it works through the workflow's saved extra_pnginfo, so it reflects the state of the graph as saved, which is what you want for filenames. It's dependency-light and has no heavy machinery - just a read of the workflow graph plus a state check.

    Install with the pack: ComfyUI Manager (search "AUN") or cd ComfyUI/custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart. No models, nothing to download. If your bypass-heavy workflows keep leaving you guessing which variant produced the image, this node is a two-minute fix.

    CategoryAUN Nodes/Utility

    Inputs (1)

    NameTypeDefaultDescription
    node_titlesSTRINGComma-separated list of node titles to check for active state. The node will check them in this order.

    Outputs (1)

    NameTypeDescription
    active_titleSTRING