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

Bypass & Mute with one button?

Open ghostsquad opened this issue 1 year ago • 2 comments

Here's an example workflow I'm constructing. You can see here, that I have multiple controlnet apply nodes daisy-chained, hooked up to a fast bypasser (blue). Though, unless the image preview is muted (red), the preprocessor will still run.

How might you solve this?

image

ghostsquad avatar Jan 02 '24 03:01 ghostsquad

There isn't a super elegant solution using bypass. However, I almost exclusively use Groups to group all nodes that take an action, and then use the Fast Groups Muter to mute them all and the "bypassing" comes from a Context coming out of the group going to a switch, and a prior context going to the same switch, at a lower priority. Thus, if the group is unmuted, then its context will be chosen.

You could do the same here, and it would look like this: Screenshot 2024-01-01 223056

(and a bit cleaner when all collapsed up): Screenshot 2024-01-01 223335


Alternatively, if you really wanted to avoid using Context and Context Switch, you could have separate Fast Actions Buttons for bypass & muting as one node, and enabling as another, for each ControlNet. This feels a bit more cumbersome, but is possible. I do plan to enhance the Fast Actions Button, but this is what you could do now:

Screenshot 2024-01-01 224011

rgthree avatar Jan 02 '24 03:01 rgthree

Fast Group Bypasser would probably work too (without the context). Isn't a leaf node essentially "muted" if it's bypassed? I read that somewhere. Let me check to see if the whole group is bypassed, if it still activates the preprocessor.

I feel like I'm spending more time designing this as a dashboard than I am creating content 😂 . Still fun though.

ghostsquad avatar Jan 02 '24 17:01 ghostsquad