Chaoses-Ib / ComfyScript

A Python frontend and library for ComfyUI
https://discord.gg/arqJbtEg7w
MIT License
431 stars 24 forks source link

Naming of nodes #26

Open lingondricka2 opened 9 months ago

lingondricka2 commented 9 months ago

Is it possible to name the nodes in the script and it will show when you load it in the web-ui?

Untitled

Chaoses-Ib commented 9 months ago

Currently, the runtime relies on ComfyUI to convert workflows from the API format to the web UI format. The API format workflow doesn't include node names, so it's impossible to set the names.

However, the transpiler actually can convert API format to web UI format. But the node layout is not as good as done by the web UI. If you can accept this problem, or are willing to layout manually by pythongosssss's auto arrange, then it's possible to make this work.

Doing this can also solve some compatibility problems with some custom nodes, but may also lead to new ones, so it will not be turned on by default if it's implemented.