chrisgoringe / cg-use-everywhere

Apache License 2.0
355 stars 28 forks source link

[ feature ] option to disable UE? links for nodes inside the same group #147

Closed JorgeR81 closed 3 months ago

JorgeR81 commented 3 months ago

Normally, I use regular links inside groups, and UE? nodes to make connections between groups.

It would be easier to prevent loops, if there was an option to disable EU? links, for nodes inside the same group.

In this example, I have a ControlNet group. Since it uses UE? nodes it has priority over the [ Prompts Everywhere ] node ( image 1 ). So, to disable ControlNet, I just need to mute the group ( image 2 ). This works very well !

But to send conditioning to all other groups in the workflow, and prevent a loop, I need to use multiple UE? nodes ( image 1 ). I'd like for this to work, with the same UE? node sendind to all groups, without creating a loop ( image 3 )

This would also be useful, if I want to save the ControlNet group as a template. This way the template would be compatible with more workflows, without modifications.


Image 1 - to prevent a loop, I need to use a set of UE? nodes ( positive and negative ) for each set of groups in the workflow, ( e.g. all groups with the prefix/name "Sampler"and "Upscalers" )

group


Image 2 - I just need to mute the group to disable ControlNet ( the priorities are great ! )

group3


Image 3 - If I use a single set of UE? nodes to send to all groups in the workflow, I also create a loop.

group2

JorgeR81 commented 3 months ago

I just noticed you already have a setting to do the opposite thing : Send only within my group(s)

Can you add this other setting to the right click menu, for each node ?

I was thinking about a global setting, but this would be even better !

JorgeR81 commented 3 months ago

And the restriction stays on, even if I load the nodes as a template ! That's great !

I also have the [ aegisflow_utility_nodes ] which creates a group for the template, when it's loaded. https://github.com/aegis72/aegisflow_utility_nodes

So I just need to load the template and it will be connected automatically. ( I Just need another UE in the workflow to connect the image ).

cnt

chrisgoringe commented 3 months ago

Take a look at the latest update - has options for group and color to

See if that's what you need!

JorgeR81 commented 3 months ago

It works very well: