Two new node suggestions - SWITCH and GATE #1625
Replies: 5 comments 20 replies
-
Came here looking for this. E.g. Some models have a built-in VAE, but I'd like to be able to sometimes use a separate VAE. SWITCH would work well for that scenario. |
Beta Was this translation helpful? Give feedback.
-
I have a PR to WAS to add some logic nodes (AND, OR, XOR, NOT) WASasquatch/was-node-suite-comfyui#331 and Impact has a node called ImpactConditionalBranch: https://github.com/ltdrdata/ComfyUI-Impact-Pack |
Beta Was this translation helpful? Give feedback.
-
@ghostsquad this is what am trying to acheive |
Beta Was this translation helpful? Give feedback.
-
to conditionally pass 1 image to only one node among the two and the other one just remains frozen |
Beta Was this translation helpful? Give feedback.
-
I've been experimenting with a similar concept to this, with the nodes named Winnow:Fork:
|
Beta Was this translation helpful? Give feedback.
-
Complex node configurations can include much functionality that can be enabled or disabled, depending on what is being done. Currently this requires that "noodles" are disconnected and later connected again when the extra functionality is required, like adding LORA or refiner etc. This is often complicated as noodles can be extensive and working out where to reconnect can be a bit of a pain.
I would like to suggest the following Nodes.
Is this possible?
a) AND. Where all inputs have a connected noodle then the output state is TRUE.
b) OR. Where any of the inputs have a connected noodle then the output is TRUE.
c) NAND. The inverse of AND with the output being True only when all inputs are disconnected.
d) NOR. The inverse of OR where the output would be true only when any input is disconnected.
(I hope I have the logic correct)
I think that, if possible, this would enable the SWITCH node operation to be automated based on the GATE logic, enabling dynamic operation where sections of the node configuration are enabled or disabled depending on SWITCH states or the state of the GATEs which could turn the switches on or off.
As I know nothing about the design of nodes I really have no idea whether the above suggestion is possible to implement without nodes with inputs turned off turning red and causing the prompt to fail. However, having done a lot of work on electronics and TTL circuitry I thought the similarity of the node configuration to an electronic circuit was an opportunity too good to miss.
Apologies if this idea makes no sense or is simply impossible. It's an idea I couldn't get out of my head!
Beta Was this translation helpful? Give feedback.
All reactions