You just have to find the node and then use node.variable = value
You can also use "autoload" in the autoload tab in project settings
This can let you have scene running outside the current scene, so you can find it with
onready var search_node = $"/root/scene"
This is usefull, because you can find it even if you change to another scene.