input text preset - adv
A prompt preset that timestamps itself — the adv you'll actually use
- prefix
- a
- b
- c
- d
- e
- f
- g
Input text preset - adv is the plain input text preset plus two upgrades: a prefix that gets prepended to every slot, and a date-stamp engine that turns %Y%m%d-style tokens into the current timestamp. If you've ever wanted your prompt (or output filename) to carry today's date without editing it by hand every morning, this is the node.
The honest pitch is the timestamping. The plain preset is a clipboard; this one is a template. Type %Y-%m-%d in the prefix and every output - the prefix itself and all seven slots - gets today's date injected. Combine it with ymc's text join to build a dated filename string that flows into a save node.
How it works
The prefix is prepended to each of the seven inputs (a–g), so prefix + a, prefix + b, and so on, and prefix itself is carried through as the first output. Then - and this is the sneaky bit - every single value is passed through datetime.datetime.now().strftime(...). That's Python's strftime, so any %Y, %m, %d, %H, %M tokens in your text get replaced with the current date/time when the node runs.
The catch that trips people: it's not a smart templater that leaves unknown tokens alone. It's a literal strftime call on each value, so any % character in your text that isn't a valid strftime code gets dropped or mangled. Keep your text %-free unless you mean a date token.
Inputs and outputs
- prefix - STRING, prepended to every slot and emitted as the first output
- a through g - seven STRING inputs
- Outputs: prefix, a, b, c, d, e, f, g - eight STRING wires, all prefix-joined and timestamp-processed
Installing it
# ComfyUI Manager: search "ymc suite" and install ymc-node-suite-comfyui
# or:
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-suite-comfyui
Restart after installing. Dependencies are four small pure-Python PyPI helpers that self-install; no models, no GPU footprint.
Gotchas
strftimeruns on every output, including the slots that don't have a prefix at all - so%tokens anywhere get expanded. Plan around that.- Timestamps are evaluated at execution time, so a re-run stamps a new time. If you need a stable date across a batch, generate it once and keep it wired, don't re-derive per run.
- The
- advnaming is this pack's way of saying "same idea, more plumbing." The sibling join text to text preset - adv is the variant that also merges an incoming text stream - read both before you pick one. - WAS-conflict note as with the rest of the pack: if WAS Node Suite is installed too, Manager may flag shared node names between the two packs.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| prefix | STRING | — | |
| a | STRING | — | |
| b | STRING | — | |
| c | STRING | — | |
| d | STRING | — | |
| e | STRING | — | |
| f | STRING | — | |
| g | STRING | — |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| prefix | STRING | — |
| a | STRING | — |
| b | STRING | — |
| c | STRING | — |
| d | STRING | — |
| e | STRING | — |
| f | STRING | — |
| g | STRING | — |