When I clicked a new button in shading mode, a node was created in a corner
I want the node to be created in the middle when it is created.
Do you know how to place nodes at default position?
When I clicked a new button in shading mode, a node was created in a corner
I want the node to be created in the middle when it is created.
Do you know how to place nodes at default position?
Clik Home key while hovering mouse over Node Editor to frame all nodes or Numpad . to frame selected.
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