rgthree-comfy icon indicating copy to clipboard operation
rgthree-comfy copied to clipboard

More a question or feature.

Open zGenMedia opened this issue 1 year ago • 3 comments

I want your relay node to work with if statements. I was currently using this but if you have another option I would use yours to keep the node packages to a minimum. The purpose is if A is true activate this node relay OR even better... mute this group and activate this other group. (I can do this now but not by a if statement).

Thank you.

zGenMedia avatar Sep 29 '24 15:09 zGenMedia

To be clear. The issue so far is the relay node can not attach to any other node I am aware of outside of your suite.

zGenMedia avatar Sep 29 '24 15:09 zGenMedia

So, this isn't going to work for the node you've pointed to, because all muting/bypassing is a client-side event. You mute/bypass nodes (even using the Fast Muter, Relay, Repeater, etc), and then you queue the prompt which sends the snapshot of the current workflow to the backend.

That if node, though, is evaluated on the backend after the prompt has been queued which, at that point, it's too late to then mute/bypass something.

Does that make sense?

rgthree avatar Oct 02 '24 01:10 rgthree

Yes you are right but I was not clear so I apologize. I had other uses... This would be in a scenario where say I have 2 options (Using PuLID or something) where there is a group that has a image of a face. If group A was off (before the wf starts) pick this face. If on use the other image. Sometimes I do this with preview bridges and a fixed seed as well.

I have come across a few scenarios where I couldn't use your switches but if your relay or muter had a boolean result the woekflow would go in a direction I wanted.

zGenMedia avatar Oct 03 '24 06:10 zGenMedia