Manual/Auto Text Switch
Auto filename or your own? This is the two-widget switch for it
- Filename
- ManualName
- Name Mode
Every filename workflow ends at the same fork: trust the automatic filename your path builder generated, or override it with one you typed yourself. AUNManualAutoTextSwitch is that fork, reduced to a single node. Three inputs in, three outputs out, one boolean deciding which side wins. It's the text-only sibling of the pack's Manual/Auto Image Switch - no image handling here, just the filename decision and a mode flag you can use to keep other nodes honest.
How it works
Feed it the two candidates and flip a switch. Filename is your automatically generated filename; ManualName is what you'd rather use. The name_mode boolean (Auto by default) picks which one comes back on the main output. That's the entire mechanism - it's a switch, and it's not trying to be anything more.
The useful part is the third output: Name Mode returns the boolean itself. That's what turns this from a trivial picker into a real tool. Wire Name Mode into other nodes that should stay in sync with the choice - a saver's naming node, a caption path, whatever's downstream - so when you flip to manual, everything else flips with you instead of silently using the wrong name.
For a beginner the outputs line up sensibly: Filename and ManualName both come out as strings (so both candidates remain available downstream regardless of which is active), and Name Mode gives you the flag.
Inputs and outputs
Inputs (all three required): Filename (the auto one), ManualName (yours), name_mode (the toggle).
Outputs:
Filename- the auto filename, passed through untouched.ManualName- your manual name, passed through untouched.Name Mode- the active boolean, for wiring into sync switches.
Installing it
This is part of the AUN pack - one install, all nodes:
- ComfyUI Manager: search "AUN ComfyUI Nodes", install, restart.
- Manual:
cd custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart.
If you installed by hand and hit missing cv2/piexif modules, run pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt.
Common issues
There's honestly very little to break here. The one footgun is assuming the switch edits one of the strings - it doesn't, it selects. If you change a name upstream, make sure it's the right input, not the widget on this node. And remember the boolean comes out as Name Mode, not as a widget you set once: the value you pick is the value everything downstream sees, so connect it where it matters.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| Filename | STRING | The automatically generated filename. | |
| ManualName | STRING | A manually specified name to use instead of the automatic filename. | |
| name_mode | COMBO | Auto | Switch between Auto (uses Filename) and Manual (uses ManualName). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| Filename | STRING | — |
| ManualName | STRING | — |
| Name Mode | BOOLEAN | — |