ComfyUI_frontend
ComfyUI_frontend copied to clipboard
[Feature Request]: Group parameters on nodes for better organization
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 ?
It would provide an improved UX to the user if there were a way to organize and group parameters. I have currently been hacking around a solution using js by taking any input parameter with a "_comment" in the name, and turning that into a "header".
See the attached image as an examnpnle:
Ideally we could use metadata on parameters in order to group them appropriately instead.
Proposed workflow
@classmethod
def INPUT_TYPES(s):
return {
"required": {},
"optional": {
"model": (
"STRING",
{
"default": "gpt-4o",
"section": "PROMPT DRIVER"
},
"max_attempts_on_fail": (
"INT",
{
"default": 10,
"section": "PROMPT DRIVER"
},
"image_generation_model": (
"STRING",
{
"default": "dall-e-3",
"section": "IMAGE GENERATION DRIVER"
},
),
},
}
Additional information
No response