Replies: 5 comments
-
Hi @bmad4ever thanks for reaching out. The ideal plan to me sounds like bugging Comfy to add it in core, IMO "color" is an important concept enough for an image processing framework. The same happened with BOOL, that I now do not redeclare in mtb since it was added in core. Thanks again |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. The extension is the one listed as "Bmad Nodes" in the manager; here is the github link. Typically, I connect the FindComplementaryColor node to a ColorClipAdvanced; but in most other use cases, I actually prefer having the color widget instead of using an additional node. |
Beta Was this translation helpful? Give feedback.
-
Cool, thanks, I just tested it and my idea would work in theory, let me just check a bit further the implications but I should push it later today |
Beta Was this translation helpful? Give feedback.
-
As you can see by default they are all red though. I will check how you handle colors, I use HEX on the frontend and interpret it as an rbg tuple in python in mtb, so to set defaults I use their hex representation. That said I will change it from red to black and make sure it supports |
Beta Was this translation helpful? Give feedback.
-
I just checked the updated mtb extension and the fork. Now that it is possible to convert between widget and slot, not using Thank you for your diligent work! |
Beta Was this translation helpful? Give feedback.
-
Hi, dear maintainer,
I'm currently also using an input type named COLOR in my extension.
When using your extension the COLOR slots turn to widgets, but can't be converted back to slots since the nodes don't follow the mtb naming convention.
I don't mind the widget and even find it to be a plus, but I need the slots in some workflows.
I initially thought to create a js script to solve this minor inconvenience; however, after giving it some thought, I'm not sure this is the best solution.
Currently, the color widget is applied across extensions, but the toInput/toWidget options are not.
Wouldn't it be preferable to have both following the same logic? that is, either both are applied, or none is.
I am not aware of all the implementation intricacies, but my immediate intuition is that:
If it is preferable to have mtb provide complementary functionalities to other extensions, then would be preferable to include both; otherwise, if it is preferable to keep each extension closed to not break some other extension, then neither should be applied.
I'd like to know what is your opinion on the aforementioned problem.
I can also solve the problem with a script in my extension, but I would like to avoid the creeping in of unwarranted entropy.
Imagine if many extensions were to use the COLOR type and had similar problems, they would have to repeat the fix not only for your extension but potentially also between each other. Such thought compelled me to seek an alternative solution instead of just fixing the problem with a script.
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions