godot get root node
snippet in javascript

godot get root node

user2054

get_tree().get_root()  
or
owner