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

Recommendations for Mute / Bypass Relay and Fast Groups Muter

Open RanKaze opened this issue 9 months ago • 2 comments

  1. Image I want the node to automatically Mute based on the status of the control panel, but the [Mute/Bypass Relay] node does not provide a condition like "&&". Expect it to provide a toggle between "invert input","&&" and "||", and "invert output" toggle.

(Perhaps I was too stupid to find a similar structure under existing conditions...)

  1. Image Some nodes do not provide an output port, I want [fast groups muter] node can change the state of its internal group when it changes the state, hope that this function can be placed in the "toggleRestriction".(may cause recursion and other problems, but I really need it)

RanKaze avatar Apr 16 '25 07:04 RanKaze

Use (!(!A || !B)) As A&&B becomes unaffordable as the workflow becomes HUGE. if someone really wants &&. Overwrite "ComfyUI\custom_nodes\rgthree-comfy\web\comfyui\node_mode_relay.js" using the following code. Note: Make a backup,And change the suffix to".js".(I can't upload".js" files.)

node_mode_relay.txt

Image When "is_special" is Normal, it behaves exactly the same as the original node. When it is switched to Special, it will run with another set of logic.

When I made the modification, I found that this node had a very significant performance issue. It would perform a query every 500ms instead of when the connection of the node changed and the "mode" of the node changed.

RanKaze avatar Apr 26 '25 09:04 RanKaze

First, most people including myself have moved over to the Fast Group Muter, which allows you to mute/bypass groups. This solves the issue of nodes needing an output since now they just need to be in a group.

The other issue you may be able to solve with the repeater and relay node. For instance, if you want to mute/bypass/enable another node based on when another node mutes/bypasses/enables you can use a repeater connected to a relay. You can even use the relay to switch its action (so, mute when the connected repeater enables, or enable nodes when the connected repeater mutes, etc.) and if you put the relay in a group w/o any connections it will toggle the entire group.

rgthree avatar Apr 26 '25 13:04 rgthree