ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

[Feature request]: Mark widget inputs as intended for user input and include flags in JSON export

Open wearsshoes opened this issue 1 year ago • 2 comments

Feature Idea

When writing a frontend for a ComfyUI workflow, typically I want to fix most of the inputs and hide them from nontechnical users, and only expose a few.

For any given input on any given node, I'd like to be able to select that node in the context menu and mark it as an intended input. This should be visually indicated in the editor GUI. This would then be reflected in the JSON export, which could be quickly parsed by a frontend application.

This feature would reduce the need to write custom logic per workflow.

Existing Solutions

No response

Other

No response

wearsshoes avatar Jul 08 '24 22:07 wearsshoes

There's multiple existing (distinct) solutions to this, for example SwarmUI has SwarmInput nodes to mark and detail user inputs, SDFX has its own separate thing (iirc based on handwritten JSON?), ...

mcmonkey4eva avatar Jul 08 '24 22:07 mcmonkey4eva

@mcmonkey4eva That's good to know! Is there a reason why it hasn't been made a core feature?

I want to be able to send workflows to various API backends (for example, ComfyICU) this way, rather than being limited to rolling my own backend / using backends which are running SwarmUI or other 3rd-party solutions.

wearsshoes avatar Jul 08 '24 23:07 wearsshoes