π TA Filename Generator
Let a node name your output files so you never have to again
- model_name
- filename
- filename_up
Every serious workflow eventually needs filenames that aren't just ComfyUI_00001_. TA Filename Generator is the pack's answer: a node that builds a structured output path from a folder, a subfolder, a prefix, a workflow version, the model name, and a timestamp - and returns both a normal filename and an upscaled variant, so your upscale pass doesn't have to invent its own naming scheme.
Everything on it is optional. The model_name input takes the pack's custom TA_MODEL_NAME type - the string emitted by TA Load Model, TA Model Preset, or TA Unified Model Switcher - and drops the bare model filename into the path. If nothing's connected, it falls back to the literal string "model". The output_folder (default "TA-Outputs") and subfolder fields set where the file goes; subfolder is cleverer than it looks because it accepts strftime date codes, so %Y-%m-%d becomes today's date at execution time. name_prefix, wf_version, and delimiter control the readable parts - you end up with something like TA-v2.50-flux1-dev-202608161430.png if you feed it through. The date_format dropdown (12 choices, from minute-granularity to full timestamps) decides how much precision the timestamp carries.
Outputs are two strings: filename and filename_up. The second is just the first with the upscaled_suffix (default "UPSCALED") appended, so base and upscaled versions sit side by side in the same folder and you can never lose track of which is which. You feed either string into a save node's filename_prefix and your outputs organize themselves.
This is one of those "the author got tired of typing paths" nodes, and it shows - it literally replicates the filename subgraph from the author's own thomo.ART workflows so the logic lives in one place instead of six string-concat nodes. Pair it with TA Load Model's model_name output and the combo is genuinely nice: switch models, and every output file starts naming itself after the model that made it, automatically.
Install. Pack ships dependency-free:
cd ComfyUI/custom_nodes
git clone https://github.com/tmode-1960/TA-ComfyUI-Nodes-Pack
or via ComfyUI Manager (search "TA ComfyUI Nodes Pack"), restart, and it's under TA Nodes/utils.
Gotchas. The model_name fallback to "model" is the thing that'll confuse you first - if filenames come out saying "model", the TA_MODEL_NAME wire isn't connected, and that's expected behavior, not a bug. Date codes are resolved with Python's strftime, so a mistyped code passes through as literal text rather than erroring, which can silently produce odd folder names. And, same as everywhere in this pack, the v2.x breaking change means old TA v1 graphs need rebuilding before this node will even appear.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| model_nameopt | TA_MODEL_NAME | β | |
| output_folderopt | STRING | TA-Outputs | β |
| subfolderopt | STRING | β | |
| name_prefixopt | STRING | TA | β |
| wf_versionopt | STRING | v2.50 | β |
| upscaled_suffixopt | STRING | UPSCALED | β |
| delimiteropt | STRING | - | β |
| date_formatopt | COMBO | 12 options: %Y%m%d%H%M, %Y%m%d%H%M%S, %Y%m%d, %Y-%m-%d-%H_%M_%S, %Y-%m-%d-%H_%M, %Y-%m-%d, +6 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| filename | STRING | β |
| filename_up | STRING | β |