2

When I clicked a new button in shading mode, a node was created in a corner

enter image description here

I want the node to be created in the middle when it is created.

Do you know how to place nodes at default position?

dean
  • 400
  • 2
  • 10
  • 1
    Press the Home key to centre the view. – John Eason Apr 27 '23 at 10:17
  • 1
    This happened probably because in some node tree you have your output moved away from the original spot. Then you switch to a new node tree, and the view's location doesn't change, but since view 'camera' is far away from origin, you have a problem finding the nodes. This is why it is advised to never move your output. – Markus von Broady Apr 27 '23 at 10:55
  • 1
    Or you can use the trick of mine to restore the position of output: Go to the previous node tree, select the output node, then Shift + F4, paste this code C.area.type='NODE_EDITOR';o=Vector({'C':(300,400),'S':(300,300),'G':(200,0)}[C.area.ui_type[0]])-C.active_node.location;nodes=(n for n in C.active_node.id_data.nodes if not n.parent);exec('for n in nodes: n.location+=o') enter. Now if you move your view (middle mouse button) to see the output, and switch to a new node tree, the nodes will spawn where you expect them. – Markus von Broady Apr 27 '23 at 10:57

1 Answers1

3

Clik Home key while hovering mouse over Node Editor to frame all nodes or Numpad . to frame selected.

Martynas Žiemys
  • 24,274
  • 2
  • 34
  • 77