receyuki / comfyui-prompt-reader-node

The ultimate solution for managing image metadata and multi-tool compatibility. ComfyUI node version of the SD Prompt Reader
MIT License
289 stars 22 forks source link

[FEATURE REQUEST] - Counter in PATH #49

Closed Latentnaut closed 9 months ago

Latentnaut commented 9 months ago

filename & path %counter cannot be used for path, it can only be used for filename. This %counter is slightly different from the %counter in the built-in Saver node, it will count all image files in the path.

I know it's hardly imposible to please everyone. But I would like to have a counter in the path, like %date/%counter/, so that I can keep my renders separately, it's much easier for my workflow. Is there any workaround to achive this (not manually)?

receyuki commented 9 months ago

This is why I like ComfyUI.

截屏2024-02-06 下午9 40 33

primitive node → Integer to String (Comfyroll) → Text Concatenate (WAS Node Suite) Any similar nodes would also work.

Latentnaut commented 9 months ago

Oh yes, you made my day :)

I need to sharp my basic programming skills as it was a easy task. Thank you for your patience and support.

If I would have the skills, I would set a variable call %sequencer to count my folders, and reset to 1 every new day detected.

Again, thank you for your help.

receyuki commented 9 months ago

No worries. In your workflow, you want to save each image separately right?, If I were you, I would choose to use %seed or %time as the folder name, which can also ensure the uniqueness of the folder name.