Groups in ComfyUI
ComfyUI groups are a UI feature not so much for "functionally bundling" nodes, but for handling nodes touching a frame (rectangle) together. Therefore, while convenient for visual organization, depending on placement, unintended nodes may move along with it.
If you want to create a functional unit, Subgraph is more suitable.
Creating a Group
Create Manually
- Right click on canvas ->
Add Group - Resize or move the frame to fit the nodes inside
Create from Selected Nodes
- Select nodes -> Click
#(Frame Nodes) inNode Selection Toolbox
Since the group frame is fixed as a rectangle, depending on the layout, unselected nodes may be included.
Since it reduces layout freedom, personally I don't use the group function much.
Editing Group Frame
Click the header of the group frame and operate from Node Selection Toolbox.
- Color: Change color
- Remove: Delete group frame
Operating Group
Right click the header of the group frame, or operate from ⋮ in Node Selection Toolbox.
- Fit Group to Nodes: Automatically adjust frame size
- Select Nodes: Select all nodes in the group
- Bypass Group Nodes: Bypass nodes in the group all at once
Moving Group Frame
Dragging the group frame moves touching nodes together. When you want to fine-tune just the position, you don't want nodes to follow.
By dragging while holding Ctrl + Alt, you can move only the group frame.