π± Artha Project Prefix
Project, Seed, Model, Date
- prefix
- seed
- datetime
If you've ever stared at a folder full of ComfyUI_00001_.png and tried to figure out which one used which seed, this node is aimed at you. ArthaProjectPrefix builds a structured filename prefix that encodes your project, title, date, seed, model, and media type - the stuff you actually need to find a render later. It's the naming half of a two-node organizing system; ArthaProjectSetup supplies the project context.
It comes from the ComfyUI-Artha-Nodes pack, Cyrostar's grab-bag. No API key, no models, no special setup - it's just string building.
How it works
The node reads project_name, project_category, and project_type from a shared in-memory dictionary that ArthaProjectSetup populates whenever it runs, then assembles a prefix like:
Youtube/Shorts/Fun/MyVideo-DATE-2026-08-16-14-30-00-SEED-42-MODEL-Flux-VID
Every part passes through a filename formatter - spaces become underscores, and anything outside letters, digits, underscore, or dash is stripped - so the result is safe to use in a filename. The date is a %Y-%m-%d-%H-%M-%S timestamp taken at execution time.
The inputs you'll actually set:
file_title- the clip/image name that lands right before the date (default "Artha").file_model- appended as-MODEL-..., so you can tell Flux from SDXL at a glance (default "Flux").file_media- dropdown of image / video / none, which adds-IMG,-VID, or a trailing dash (default image).file_seed- baked into the name as-SEED-<n>.
Outputs: prefix (the full string - wire it into a save node's filename_prefix), seed (your seed passed through, so you don't need a separate reroute), and datetime (the raw timestamp, if you want it for anything else).
The catch: it depends on ArthaProjectSetup
This is where people trip up. The project folder part of the prefix doesn't come from this node's own inputs - it's read from ArthaProjectSetup's shared dict, which only gets filled when that node actually runs in your session. Add ArthaProjectPrefix to a workflow that never had ProjectSetup in it and the prefix starts at the title, with no project folders. Wire ProjectSetup in anywhere, run it once, and the values stick around for the rest of the session.
Installing it
Same pack as all the Artha nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/Cyrostar/ComfyUI-Artha-Nodes
cd ComfyUI-Artha-Nodes
pip install -r requirements.txt
# Windows portable: python_embeded\python.exe -m pip install -r requirements.txt
or install via ComfyUI Manager by searching "ComfyUI-Artha-Nodes", then restart ComfyUI. The pack uses ComfyUI's newer extension API, so if the node doesn't show up, update ComfyUI first.
Gotchas
The prefix builds its folder part with forward slashes while ArthaProjectSetup's path output uses backslashes - this is a Windows-shaped pack, and on Linux the mixed separators can look odd in a save path. Also note the output is exactly a prefix: whether the folder layers actually get created depends on your save node. And because the project context lives in a session-scoped dict, if you change values in ProjectSetup and don't rerun it, the prefix silently keeps the old ones.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| file_title | STRING | Artha | β |
| file_model | STRING | Flux | β |
| file_media | COMBO | image | 3 options: image, video, none |
| file_seed | INT | 420β18446744073709550000 | β |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| prefix | STRING | β |
| seed | INT | β |
| datetime | STRING | β |