comfyui-togglemaster Introduction
comfyui-togglemaster, also called ComfyUI Wireless Toggle Master, gives you one place to control nodes throughout a ComfyUI workflow. Instead of finding and switching each node individually, you can group nodes by their title or color and use toggles on a single Wireless Master Toggle node.
“Wireless” means you do not need to draw connections between the master toggle and the nodes it controls. This can be especially useful in a large workflow with several characters, style presets, or alternative branches. For example, you can put all your character-option nodes under one control and switch characters without searching across the canvas.
The extension can also include nodes inside subgraphs and, when you need an exclusive choice, limit how many matching nodes can be on at once.
How comfyui-togglemaster Works
Think of the Wireless Master Toggle as a control panel that finds nodes by their labels or colors:
- Choose which nodes belong to the group. Enter a title pattern, a list of colors, or both in the node’s properties.
- The extension finds matching nodes. It creates toggle widgets for the nodes that meet your criteria.
- Use the toggles to switch nodes on or off. You can leave multiple options on, allow no more than one, or require exactly one, depending on the restriction mode you select.
For a character-selection setup, you might title your option nodes Char_A, Char_B, and Char_C. Setting matchTitle to ^Char.* targets titles that begin with Char. You can then use always one mode so that choosing one character turns the selection into a radio-button-style choice: one option remains on.
Title matching uses a regular expression—a text pattern rather than a single exact name. The ^ in ^Char.* means “starts with,” while .* allows any characters after Char. If you prefer to organize visually, you can instead match nodes by color.
comfyui-togglemaster Features
Control nodes without connections
Add a Wireless Master Toggle node from the utils category. Right-click it and open the Properties Panel to configure which nodes it controls. You do not need to connect it to those nodes with wires.
Match nodes by title or color
| Property | What it controls | Example |
|---|---|---|
matchTitle | Matches node titles using a regular expression | ^Char.* matches titles beginning with Char |
matchColors | Matches a comma-separated list of node colors | red, #ff0000 |
Consistent names or colors make groups easier to manage. For example, you could name several style options with the same prefix, then use one title pattern to find them. Or you could color-code the nodes you want to control together.
Include subgraphs and organize the controls
| Property | Options | What it changes |
|---|---|---|
showAllGraphs | On or off | Includes nodes from subgraphs when enabled |
showNav | On or off | Shows navigation arrows when enabled |
sort | position or alphanumeric | Orders the generated toggles by node position or alphabetically |
If your options are spread across nested subgraphs, enable showAllGraphs to include them. If you have many matching nodes, choose the sorting order that makes the list easiest for you to scan.
Choose how many options can stay on
Set toggleRestriction according to how you want your choices to behave:
| Mode | Behavior | When it is useful |
|---|---|---|
default | Multiple matching nodes can be on at the same time | Combining options, such as several style presets |
max one | No more than one matching node can be on | Comparing alternatives while allowing all of them to be off |
always one | Exactly one matching node stays on | Choosing one character or one workflow option at a time |
For instance, always one suits a character picker where you always want a character selected. Max one suits an A/B comparison where you may also want neither alternative selected.
Example workflow
Sample workflow showing Wireless Master Toggle selecting between fruit options
The sample uses an “always one” restriction to switch between fruit options.
Download the sample workflow and load it into ComfyUI to see the controls in context.
Learn More about comfyui-togglemaster
- Try the sample workflow: Explore how the author arranged the fruit options and configured an exclusive selection.
- See the sample workflow image: A quick visual reference before opening the workflow.
- Related inspiration: The author credits the Fast Groups Muter/Bypasser nodes from rgthree-comfy as inspiration for this extension.
