Manual Name
Auto filename when you want it, a name you typed when you don't
- MainFolder
- Filename
- Name Mode
MainFolderManualName solves a small, specific annoyance: sometimes you want the workflow to generate its own filename from the model, seed, and CFG - and sometimes you want your renders saved as posting_here.png because you're about to upload them somewhere that doesn't care about your sampling details. This node is a toggle for exactly that, placed in the AUN file-management chain.
It takes a MainFolder, an automatic filename, and a manual name, then picks one of the two names based on a boolean. And because it's AUN, it does the polite thing: it also passes the MainFolder through and emits the boolean state as an output, so the rest of your graph can react to the same switch.
How it works
The logic is two lines and all the more useful for it. When name_mode is on (Manual), the Filename output returns your ManualName. When it's off (Auto), it returns the auto-generated Filename. Everything else is pass-through. Where this node lives matters more than what it does: it sits between a path/filename builder and a saver, and its outputs are the file-management contract.
The inputs that matter
- MainFolder - the output directory, passed through untouched.
- Filename - the automatically generated filename. This one is
forceInput, so it's a socket, not a widget - connect it to something likeAUN Path Filename V2or any text/string output. - ManualName - the name you type yourself when you don't want the generated one. This one is a plain widget.
- name_mode - the boolean toggle, labeled
Manual/Autoin the UI. Auto is the default.
Three outputs: MainFolder (unchanged), Filename (whichever name won), and Name Mode (the boolean itself).
Where it earns its keep
The boolean output is the sleeper feature. Because it mirrors the switch state, you can feed it into other nodes that care - a filename label toggle, a switch that changes your save path, or anything else that should stay in sync with "am I in manual-naming mode." It's the same pattern as AUN's Manual/Auto Text Switch, just for the file-management side.
Typical chain: AUN Path Filename V2 → MainFolderManualName → AUN Save Image V2. Flip to Manual, type a clean name, and the saver writes exactly that. The one thing to remember: Filename is a socket. If you leave it unconnected it just carries the literal default string "Filename", which is not what you want going into a saver - connect your builder, or you'll get files named Filename.
Installing it
AUN pack, standard route. ComfyUI-Manager → search "AUN" → install, or:
cd custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
Restart. The pack's requirements.txt (piexif, opencv-python-headless, imageio-ffmpeg, requests) installs with Manager automatically; if you cloned by hand and ComfyUI complains about a missing module, pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt sorts it. This node itself is plain string passing - the deps are for the savers and video nodes around it.
If you've been living with "delete the seed from the filename manually," this is the node that ends it.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| MainFolder | STRING | MainFolder | The main folder for the output path. |
| Filename | STRING | Filename | The automatically generated filename. |
| ManualName | STRING | Name | A manually specified name to use instead of the automatic filename. |
| name_mode | BOOLEAN | false | Switch between 'Auto' (uses Filename) and 'Manual' (uses ManualName). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| MainFolder | STRING | — |
| Filename | STRING | — |
| Name Mode | BOOLEAN | — |