-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Feature Request]: Blender style sliders ( with min/max as node properties ) #193
Comments
FYI... I just tested it, and this is already in available in comfyUI... because this functionality is just not used in any nodes... all you have to do is find the node to modify... then find the python file that manage it ... find the "def INPUT_TYPES" section then find the widget value(s) to be transformed into a slider (in my example, the 2 values are "rows" and "cols"
make sure you have a default, a min and a max value defined,
then just add "display": "slider", after the max value....
save the file... restart ComfyUI and try the node... Sliders as requested !!! |
If it is a custom node from you, it is without any problem... unless someone have a solution.... |
What may be missing for this to be added is a slider edit system. Take a look at these extensions: This custom node allows you to control any numeric widget via slider ( https://github.com/cubiq/ComfyUI_essentials ) This new extension allows you to reproduce nodes in the Sidebar ( https://github.com/chrisgoringe/cg-controller ) The slider editing, it's very simple at the moment. It's in the settings. |
The cg-controller just added an improved slider edit system. Maybe ComfyUI could have use something similar. |
Is there an existing issue for this?
What would your feature do ?
Users could set min / max values for widgets, in the node properties.
This would allow creating sliders, instead of the current widgets.
https://github.com/florestefano1975/comfyui-portrait-master
I love the way Blender integrates the slider and input box.
https://forum.qt.io/topic/145406/best-practices-factoring-code-to-create-a-custom-slider
Proposed workflow
Sliders could be enabled, per widget, in the node properties, once the min / max values were inserted.
Some common nodes like KSampler could have pre-filled min / max values.
Additional information
No response
The text was updated successfully, but these errors were encountered: