Suzie1 / ComfyUI_Comfyroll_CustomNodes

Custom nodes for SDXL and SD1.5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes.
https://civitai.com/models/183551/comfyui-comfyroll-custom-nodes
634 stars 87 forks source link

[Feature Request] Add a "Binary Switch" #106

Open aegis72 opened 8 months ago

aegis72 commented 8 months ago

image

basically, this. There are places where I have users make these sorts of binary choices, since my WFs can either take stuff from other modules in the same wf OR internally within the current module (here, an image being passed from a sampler can be chosen, or an image loaded from a loader).

Right now, the user has to either put in 1 or 2, programmer style, or hit the tiny left/right buttons. This would be better served (usually) by a larger two-state toggle button that is easier to click. Of course, one could make multi-state toggles too, (each push advances the function chose through a list/array of them) but a simple binary one would do wonders for usability.

aegis72 commented 8 months ago

Like so:

image