New Feature: Seed History #216
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! I added a seed history to the Seed widget because it’s a feature that I find useful. Here’s my situation: I generate an image and it looks very nice but what if the next seed generates something better? So I generate a new one, do some tweaking to the workflow, generate again, more tweaking and nah; that first seed was the best. I want to go back to it but what was that seed? I could use the workflow history or some custom node that keeps a log/gallery of what I did but I don’t want to lose all the small tweaks I did after that because all of these solutions will also restore the workflow. I didn’t find a node that would restore just the seed. I could load the image somewhere else to get just the seed but that’s too many steps. Why not just have a simple, easy to use, seed history? And this feature is just that.
As it is right now, I replaced that textbox with the last seed with a combobox where you have all the last 50 seeds (can be changed in code). When you select a seed it will replace the current seed like if you pressed the “use last queued seed” button. When the number of seeds goes over 50, the last one is removed from the list.




If the new seed used is the same as the last one, it won’t be added to the list.
The history only works if the option is active.
I would like to know your thoughts. Do you want to add this feature? Maybe change the way it’s implemented?
I haven’t implemented this in Python and TypeScript because I first wanted your opinions. If you guys give it a go I’ll also update for those two (even though I don’t know where/how to test them, I only use the web-ui).
Also, I’m not a JavaScript developer so if there are “better ways” to do something that I implemented I’m open to suggestions.