- Edited
I am tyring to add a node to a scene through the editor. I am able to open scene but specefied node does not get added in code.
# Open scene | Get scene root
editor_interface.open_scene_from_path("res://addons/graphs/graphs_core_editor/scenes/scene_graphs_core_editor_scene_3D.tscn");
var scene_root = editor_interface.get_edited_scene_root();
# Create graph runner | Add it to the scene
var graph_runner = GraphsCoreRuntimeGraphRunner.new();
scene_root.add_child(graph_runner);
I also tried
scene_root.get_tree().get_root().add_child(graph_runner);