Groups in ComfyUI
Groups in ComfyUI are less about "bundling nodes by function" and more a UI feature for handling every node that touches a frame (rectangle) together. So they're handy for tidying things up visually, but depending on the layout, nodes you didn't mean to include can move along with them.
If you want a functional unit, Subgraph is a better fit.
Creating a Group
Create Manually
- Right-click on the canvas ->
Add Group - Resize or move the frame to fit the nodes inside
Create from Selected Nodes
- Select nodes -> click
#(Frame Nodes) in theNode Selection Toolbox
Group frames are always rectangles, so depending on the layout, nodes you didn't select can end up inside.
It limits how freely you can lay things out, so personally I don't use groups much.
Editing a Group Frame
Click the group frame's header and use the Node Selection Toolbox.
- Color: Change color
- Remove: Delete group frame
Group Actions
Right-click the group frame's header, or use ⋮ in the 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 a Group Frame
Dragging a group frame moves the nodes touching it too. When you just want to nudge the frame's position, you don't want the nodes tagging along.
Hold Ctrl + Alt while dragging to move only the group frame.