Is there a syntactic sugar to get Node from a path relative to root node of a subscene

Which is equivalent to owner.get_node("A/Node/Deeper")

1 Like

Get node starts with self. Or . it is implied with get node.

If you want to go one up use .. go up two ../.. etc.

There is no shortcut down the tree.

You could also make a “unique” node then use the % operator to get it.

If you don’t like typing get node there is also the $ operator

Owner.$A/Node/Deeper

1 Like

I think Godot 4 lets you to go to the node directly by just writing get_node("/root/owner/A/Node/Deeper"). Note the "/root/" part of the NodePath in the method.