Can't figure out how to "retrieve" bodies created by instantiator...
eric_pesty
Member, pcbaevp Posts: 2,923 PRO
I don't think I can use "qCreatedBy" and I can't use the "instantiator" variable directly...
For context I am adding instances within a loop and I would like to apply a transform to all the bodies at the end.
I had created a query that worked fine in my test case but it also moves everything else that's already in the part studio (which makes sense) so that was an epic failure.
I'm sure there's got to be a way to do this but I haven't worked with the instantiator before and it's a bit of a different animal from what I'm used to...
For context I am adding instances within a loop and I would like to apply a transform to all the bodies at the end.
I had created a query that worked fine in my test case but it also moves everything else that's already in the part studio (which makes sense) so that was an epic failure.
I'm sure there's got to be a way to do this but I haven't worked with the instantiator before and it's a bit of a different animal from what I'm used to...
Tagged:
0
Best Answer
-
Nevermind, I figured it out!
I re-read through the "addInstance" documentation and found the hint in the optional "name" part.
For anyone reading this, it is done with qCreatedBy(id + "name of newInstanciator", entityType.XXXX). I was missing the "entityType" when I first tried it.1
Answers
-
Nevermind, I figured it out!
I re-read through the "addInstance" documentation and found the hint in the optional "name" part.
For anyone reading this, it is done with qCreatedBy(id + "name of newInstanciator", entityType.XXXX). I was missing the "entityType" when I first tried it.1