What method, if any, is the correct way to get a reference to a newly instantiated object?
I have an object called Widget, which I want to create many instantiations of using Python. After creating a new Widget, I want to access it so I can modify its properties. However, I don't know how to get a reference to the new Widget.
I thought System.CreateObjectByName() would return a reference to the new Widget, but it doesn't.
I thought that I could get the new Widget by accessing the last element of the Widget[] array, but it seems like the array doesn't add the new objects right away. (maybe it waits until the next frame?)
Here is a .cap showing my failed attempts.
Download
(I'm using Construct version 0.99.96, if that's relevant)