hm...I just did a really quick test...
(ignore the formatting, can't get the code formatting to work correctly, cut and paste does not seem to work :) )
var props = []
func _ready():
props = get_tree().get_root().get_node("main/DirectionalLight").get_script().get_script_property_list()
print(props)
and it's returning a value of 8192 for everything..according to the docs...
PROPERTY_USAGE_SCRIPT_VARIABLE = 8192 --- The property is a script variable which should be serialized and saved in the scene file.
I've also tried appending them individually into another list(of lists)..but it still returns 8192 as the value stored.
I made this node specifically to test and gave it a few per-initialized varibles...but, not really certain how I get the value out of this?