Shouldn't node creation reinvoke the node class?
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
Currently when you create a node, that invocation is used for every subsequent node creation. This functionality doesn't seem correct when we have the ability to use `__init__` and may have dynamic inputs that may need to redraw their file lists, filenames, etc.
Edit: This seems like a important aspect of a iterative system like Comfy. It's like when you invoke a class within a loop, so every loop can get the unique data for that iteration.
Use case scenarios may include:
- random filenames: If another node is created it will use the same generated random filename as all previous ones, which would require user input to change or all the nodes will overwrite each other.
- drawing a file list for various things (images, drawing config settings that may have changed, etc, etc)
- drawing new files saved in previous generation process
- _probably a lot more uses_
Little more off topic, it may be cool to reinvoke even drawn nodes after a prompt has finished. Perhaps there are nodes which load stuff that may have been exported from Comfy, or utilize internal storage to save things (like my token system), so that the nodes that allow you to use such things, will be aware of them. Optionally a button to "refresh nodes" would be helpful too. Dynamically being able to be aware of changes to comfy, nodes, and the system would be very helpful to a user friendly experience with custom nodes.
Contributor guide
Assessment
This issue has not been assessed yet.