Will there be a Scripting API for containers, to be able to reference them? A sample use-case is setting all containers with an instance variable of the uid of the parent object, upon creation.
It's not currently supported. It's best to log suggestions at construct3.ideas.aha.io so they don't get lost in the forum.
FWIW, containers are pretty straightforward: because they always create and destroy together, all instances have the same IID (i.e. the same index in the instance lists), so you should already be able to figure out the container instances fairly easily.
I've tried picking the objects by manual name search (runtime.objects["name"]
), however it seems that the container objects are only later created after the "instancecreate"
event. So, it's not possible to reference them on creation, unlike events.
It's impossible to reference all container instances in a create event, due to the reasons I explained here.