ComfyUI-Custom-Scripts icon indicating copy to clipboard operation
ComfyUI-Custom-Scripts copied to clipboard

[Feature Request] Preset Text data specific to Node

Open noembryo opened this issue 2 years ago • 4 comments

When I first discovered the PresetText Node I thought I could really get rid of many nodes that I use now for prompt creation. But I was really disappointed to see that all the PresetText nodes share the same data.

My use case is this:

  • I have many different text boxes with values like "Candlelight", "Cinematic", "Diffused", etc. for lighting.
  • I connect them to a Switch that selects one of them by number of port
  • I send the selected text to a Text Concatenate node that adds them with other similar text (picture type, style, etc.)
  • Sent the text to positive prompt

For every switcher, I use many different texts that I have to distinguish between them with numbers. 😩 That's why I was really excited with this node. I started to add values to the first one, then copy it and added different values for the next one, and so on.. Although the menu drop-downs were different for every created node, the name/value pairs were the ones that I edited last! 🤯 Every one of them show the same values if I go into manage. Trying to run any of the first ones gives me an error of non existing preset..

To add all of them together going to be a nightmare, because there are many small phrases and in different groups, groups that can be expanded later and it will mix different phrases from different groups (because there is no way to change the order).

So, this is my request: Is it possible for every PresetText node to have its own data (names/values) and drop-down menu? And also, a way to change the order of the menu entries will be really helpful anyway.. 😃

Apart from this wish, I have to thank you for all those nice tools that you given us..

noembryo avatar Oct 26 '23 14:10 noembryo

I second this request. And, on top of it, I ask if it's possible to save the values in text files that can be edited outside ComfyUI (if necessary).

alessandroperilli avatar Nov 02 '23 16:11 alessandroperilli

I second this request. And, on top of it, I ask if it's possible to save the values in text files that can be edited outside ComfyUI (if necessary).

I finally wrote my own nodes that do what I want, and what you ask for too.. They use json files. PromptTermList nodes

noembryo avatar Nov 02 '23 16:11 noembryo

It looks promising, @noembryo! I'll do some tests. Thank you for sharing your work with the community.

alessandroperilli avatar Nov 02 '23 17:11 alessandroperilli

I just ran into this.

ghostsquad avatar May 13 '24 03:05 ghostsquad