comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
56.1k stars 5.94k forks source link

Feature request: How about blender like nodegroups ? #2417

Open Ulf3000 opened 10 months ago

Ulf3000 commented 10 months ago

I dont know if you have experience with blender , but in blender you can create nodegroups which have multiple nodes in them with input and output nodes which are then exposed through the nodegroup ui as a "supernode", that means you build any type of "supernodes" and once you tab into them the internal structure is exposed. I have a hard time describing this so ill add some screenshots:

this is a random nodegroup with the input and output node : grafik

which is exposed to this "supernode" once you tab out of the group and go back to the parentflow: grafik

as you can see all the inputs and outputs get then added to the nodegroups ui this is a perfect design and works awesome for the complicated shadernodes and geometrynodes networks in blender.

i hope this could be implemented , as it would fix the need for many of the custom nodes which try to achieve a similar thing. (there are too many custom nodes already , its really cluttered and weighs down on comfyui's qol experience)

nomadoor commented 10 months ago

Image from Gyazo The Group node feature has already been added to ComfyUI. It behaves a bit differently from Blender’s, but please give it a try.

Ulf3000 commented 10 months ago

great! i came to post this too, as ive seen it on a new video which was uploaded yesterday for the faceid_v2 adapter. thanx for your hard work!

MoonMoon82 commented 10 months ago

The most important feature to get Group Nodes be more like blenders node groups is a Group-input and -output node. Currently I have huge issues using group nodes because I can't specificly define which inputs and outputs should be shown or be hardwired. Prim-nodes are a total mess in grouped nodes.