Quick question here. I’m sure it’s ez but I spent too much time trying so I’d rather ask.
How do I access an instance that is a child of a cloned object group/parent.
The parent is cloned with all instances and the clone gets a new name but all the children (instances) still have the same name.
Question is: How do I access these instances part of my cloned object group?
You created all names already, so the index of your parent will be the index of child instance.
You may add an array to store all indexes for direct use or map them to key-value pair for fast access.
Really? I mean I have this alternate way which also works…
but isn’t there anything really slick and ez to access it? Makes me wonder.
Thanks anyways. At least I have a way I can use. Still interested in knowing why this is (or if it can be improved).
Meanwhile, have a great day
Edit: Ok, so I’m gonna keep with my second solution for now. It will do because I only have a limited number and It’s named so I can just run a for loop on init. Since I need it only on init, it doesn’t really matter. But then, if I had to access a large number of those at different time, I would need to go with your solution using an index I suppose. Thanks again,
So, my final code will look like this (for now):
Edit1: And just in case you were wondering about the use case, this is what this was all about (WIP)