Inverted Logic Switches #135
Replies: 6 comments 8 replies
-
I still don't think I follow what you mean. How do you get two inputs from one without it just being a duplicate? |
Beta Was this translation helpful? Give feedback.
-
Oooh, I get it now. Sorry, I don't know why that was hard to understand.
It's been a stressful weekend. I'll add that to the to-do.
…On Sun, Jul 23, 2023, 3:33 PM WinstonWoof ***@***.***> wrote:
No
One Input with 2 Outputs so that for example by using the Boolean switch
you could (if it was an Image one) switch an Image output to either a
Preview or to a Save step
—
Reply to this email directly, view it on GitHub
<#135 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIZEZKOI4MJ6QQZZTWC4MLXRWREFANCNFSM6AAAAAA2UXPW24>
.
You are receiving this because you commented.Message ID:
<WASasquatch/was-node-suite-comfyui/repo-discussions/135/comments/6523175@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
If I write it up as so, I do get an image passthrough to image_a with boolean = 1, but yeah, when I try and make boolean = 0 I get the NoneType error. `class WAS_Image_Input_Switch:
Traceback (most recent call last): (not super fluent in python, just seeing what I could do) |
Beta Was this translation helpful? Give feedback.
-
You need to have two image return types |
Beta Was this translation helpful? Give feedback.
-
I did a bit more work on it, I got it working, but I did have to alter the nodes.py file as well, specifically the class SaveImage:. Here's the new Image Output Switch:
And here's the edited nodes.py class SaveImage:
|
Beta Was this translation helpful? Give feedback.
-
Yeah but that isn't applicable. The same thing would need to be applied to all nodes. More a thing to fix on the front end to handle any nodes dynamically. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Would it be possible to have inverted Logic switch options please.
Ie rather than switching between 2 inputs to one output as per existing
to switch 1 input to 2 different outputs (but dont have both mandatory)
This would be a smarter way to implement "feature " switching then for example my current method of using jumpers.
Beta Was this translation helpful? Give feedback.
All reactions