godot get scene root
snippet in javascript

godot get scene root

user5741

get_tree().get_root()  
or
owner