ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Allow specification of display_name on inputs

Open freakabcd opened this issue 1 year ago • 2 comments

Allow inputs on nodes to specify a display name. Currently, all inputs are forced to use the name of the python variable being used to declare the input. At a minimum these are not allowed:

  • python keywords
  • spaces

This change will allow node inputs to specify a display_name property during declaration. the display_name property is used on the frontend if present, If not specified, identical behaviour to current master branch is preserved. Here is an example with temporarily modified KSampler node: image input_display_name

freakabcd avatar Feb 23 '24 07:02 freakabcd

Please don't merge! theres an issue with running workflows. backend -> frontend is all good. Executing workflows (frontend->backend) has issues

k-imran avatar Feb 23 '24 08:02 k-imran

please have a look to that https://github.com/comfyanonymous/ComfyUI/compare/master...MaraScott:ComfyUI:master

MaraScott avatar May 21 '24 16:05 MaraScott