chrisgoringe / Comfy-Custom-Node-How-To

An unofficial practical guide to getting started developing custom nodes for ComfyUI
GNU General Public License v3.0
143 stars 5 forks source link

Loops #11

Closed gee666 closed 7 months ago

gee666 commented 8 months ago

I need a simple loop logic, is there any idea how to implement it? I imagine having one node "LoopStart" and one node "LoopEnd", which will decide, if it should activate a connection back to start or forward to the next nodes, depending of the loop index. Though I can't find any information if it's possible at all to decide to activate or not activate certain outputs/connections and also I guess ComfyUI might block the workflow with loops.

Would you give any advice?

chrisgoringe commented 7 months ago

I'd advise you not to do this :).

The way Comfy works is to submit a complete prompt at the start - modifying the logic afterwards is not at all easy...