Sometimes you may find that your node tree becomes a bit disorganized as you’re creating and removing nodes. There’s a quick fix you can use to tidy up your tree:
1. | Select all the nodes you want to rearrange in the Node Graph. |
2. | Click Edit > Node > Autoplace. Alternatively, press L. |
The Autoplace function automatically arranges the selected nodes in a neat tree formation. It takes the node or nodes that you've selected, and progresses through the tree, repositioning connected nodes. It determines a sensible position for the nodes by making sure they don't overlap with other nodes and by keeping the input connections horizontal.