-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Changed KSamplerAdvanced input types #9848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Have you considered how this will affect existing workflows? |
I've opened this PR as a point of reference. How it should be handled in regard to existing overflow is up to you. – Best solution would be to make a check during deserialization of a workflow. Fully transparent to the user. Not sure if comfy already has version control serialization in place. In any case, if you can point me in the right direction I should be able to take care of it. |
Implemented a KSamplerBoolean node, keeping KSamplerAdvanced intact for backward compatibility
I ended up implementing a KSamplerBoolean instead. Now the best but the easiest solution at least. 100% backward compatible. |
Just to be clear, I'm a random person with no authority sharing my opinion so nothing is up to me.
Unfortunately, I don't think anything like that currently exists. I'm actually not even sure where deserialization happens.
I don't like the |
I could see a change like this being made when a quality-of-life node review is done, but it would require some testing to see what breaks + a better deprecation system. A new node that is identical to another except for one input difference probably won't get merged until that deprecation system is in place. |
It's not only cosmetic however. Custom data types cannot be remotely controlled. Booleans can. For instance, Wan2.2 has a popular 3 samplers workflow. With boolean values I can automatically control the Boolean fields can interact with GetNode / SetNode from popular KJNodes pack for instance, while custom data types aren't. |
Not saying it's a good solution or anything but it's not impossible to do this (at the moment, anyway). For example, the So you can do something like this: ![]() Note: It doesn't do any conversion or checking that the types are compatible so if you connect something that has an actual value that the input doesn't expect then stuff will explode. |
#9847