xyz
I don't get an error message, I just get no script attached to 'bod'
Some notes: global.PanHandler and global.SlideHandler are preloaded elsewhere.
I've confirmed that nodescript is loaded ok and that bod has also been instanced ok.
Although I have a more severe problem not being able to attach a script AFTER adding the child, what I really want to do is adjust some properties as well as attaching a script BEFORE adding the child scene. So far I can read properties of the scene but have found I can't write to them until the scene has been added as a child.
func LoadNode(ID,overlay):
global.UpdateNodePaths(ID)
var a = load(global.scriptpath)
var nodescript = a.new()
nodetype = nodescript.type
if nodetype == "pano":
bod = global.PanoHandler.instance()
else:
bod = global.SlideHandler.instance()
add_child(bod)
bod.set_script(nodescript)
Here is the Remote tree; global.SlideHandler instance is 'NodeHandler', which is the node I'm trying to attach the script.
