ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

IO.NUMBER should have widget

Open jtydhr88 opened this issue 7 months ago • 3 comments

IO.NUMBER should have widget, same to INT, FLOAT, String, see https://github.com/comfyanonymous/ComfyUI/pull/8024 otherwise we have to connect Int or float node as input

Image

┆Issue is synchronized with this Notion page by Unito

jtydhr88 avatar May 19 '25 17:05 jtydhr88

n.b.: IO.NUMBER is FLOAT,INT. So we really just need to solve the widgets for multi-type situation.

webfiltered avatar May 20 '25 02:05 webfiltered

Using "widgetType" you can solve that already.

As INT and especially FLOAT have issues (like forced rounding) I actually prefer something like

            "required": {
                "value": (IO.NUMBER, {"default": 0.0, "widgetType": "STRING"}),
            }

for my custom nodes.

StableLlama avatar May 23 '25 20:05 StableLlama

Using "widgetType" you can solve that already.

Yeah, that's from #3550. There was a pending follow-up for that, hence my comment.

webfiltered avatar May 24 '25 04:05 webfiltered