ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[Feature Request]: Allow overriding step and/or min/max values for numbers

Open asagi4 opened this issue 6 months ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Number value ranges and step should be overrideable per node from the UI; the backend does not enforce them anyway.

Sometimes it's useful to override the step value configured for a node. For example, often a step of 0.001 is too small, which makes the value difficult to control and using a coarser step would make the user experience better.

Sometimes nodes also specify min and max values that are either too restrictive or too broad in range, leading to the same problem as with too small step sizes; users should be allowed to override them.

Proposed workflow

I do not really have a preference for how this should be implemented. Perhaps the existing "properties" facility can be used somehow.

Additional information

This feature would become even more useful once there's some alternative to noodle soup and you can actually build nicer UIs for workflows.

asagi4 avatar Aug 22 '24 19:08 asagi4