There are get_tree()
and get_root()
methods but in earlier godot versions they were not working correctly (at least for me) and i still avoid them. I also avoid the dollar $ sign. I use it only when i need to grab children nodes.
The way I showed you is just logical, you need a child of the parent of the parent :)))