Right, so it's rather easy to find a specific entity in a scene when running a LUA program outside the sandbox editor, i.e.:
scene=LoadScene("MyScene")
myobject=scene:FindChild("MyObjectName")
It's obviously not that simple to do when running the script from within the Editor, and although I have spent many hours reading through our forums, there still doesn't seem to be a satisfactory answer of doing the same from a LUA script running within the editor, simply because there is no "scene" object to refer to - it's not being loaded anywhere in the code for obvious reasons.
So, in short - what object/entity can I refer to in place of the scene to find a specific child entity of the scene by it's name key or am I on the "wishful thinking" track here?
Is the scene itself (within the editor) a member of the CurrentWorld() or global framework object for example or do I have to start referring to global classnametables and objecttables to achieve this?
All I am really trying to do is to get a reference to a specific directional light within my scene to do some sun path tracking from code running inside the edtor - NOT code using engine.exe from the outside.
Assistance from anyone in this matter will be much appreciated.