I am using a script extending EditorScenePostImport, to run automatically on import of objects to organise them on import. I need to be able to take the scene passed to its post_import() method, and parent it to a/the parent scene already in the project. I am having trouble figuring out how to access the root of the existing scene in editor without running a script in a node already in the scene, or an EditorScript.
I can access it fine through an EditorScript based script. I am quite new to godot so learning how it all works. I can also see that there is no multiple inheritance so I cant extend the EditorScript as well... Any tips on how to do this?
The main purpose of it all is to be able to automate importing of my whole scene, as I cant rely on being able to copy files into the editor. I also want to be able to automate what happens after they are imported, hook up materials, place imported scenes into the main scene etc. Thank you in advance!