WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

How to loop through all items in a wildcard file? #73

Closed roygear closed 1 year ago

roygear commented 1 year ago

The default behavior is choosing items randomly. Does the " Loop through all items " logic exist?

WASasquatch commented 1 year ago

Like sequentially getting first through last wildcare in each prompt? It would require making use of settings file and storing temp values to know where it's at, and having a name for every node that has to be set so it knows how to store each value to get it back for the right node. Like the batch load image. Unfortunately the node classes aren't ran one and then their functions ran, whole class is instantiated fresh every prompt run, which makes development wonky.

roygear commented 1 year ago

Thanks for your answer. Can I request a functionality like "Batch load text file"? Thanks.

WASasquatch commented 1 year ago

Thanks for your answer. Can I request a functionality like "Batch load text file"? Thanks.

Added it to my list of TODO

WASasquatch commented 1 year ago

Added a sequential line text loader: https://github.com/WASasquatch/was-node-suite-comfyui/commit/41cea6016962c15fa002cbf96e0a4d1d02fa1a2a