Adding nodes to frames in Blender can be done primarily by selecting nodes and framing them or by dragging nodes into an existing frame.
Based on the provided reference, here's how to frame selected nodes, effectively adding them to a new frame:
Framing Selected Nodes in Blender
Organizing your node setups is crucial for clarity. A quick way to put selected nodes into a frame is using a simple shortcut combination.
- Select Nodes: Press B for the Box Select tool and drag a box around the nodes you want to include in the frame. Alternatively, Shift-click on individual nodes to select them.
- Frame Them: Once your desired nodes are selected, press Shift + P. This action immediately creates a new Frame node around the selected nodes.
- Customize the Frame: Press N to bring up the sidebar (Properties region) if it's not already open. In the sidebar, with the Frame node selected, you can:
- Give the frame a Label Name (e.g., "Main Setup", "Diffuse Nodes").
- Assign a specific Color to the frame for visual organization.
This method directly utilizes the selected nodes to create a new frame containing them.
Adding Nodes to an Existing Frame
If you already have a frame and want to add more nodes (either newly created or existing unframed nodes) into it, the process is straightforward:
- Drag and Drop: Simply click and drag the node (or multiple selected nodes) and move them entirely inside the boundaries of the existing Frame node. The node will then become part of that frame.
- Removing from a Frame: To remove a node from a frame, click and drag it outside the frame boundaries.
Using frames helps to visually group related nodes, making your node trees easier to navigate and understand. You can move an entire frame, and all the nodes contained within it will move together.