Home › Forums › Puzzles › Trouble animating all objects in a list
Hi, I have a list of objects which I am iterating through in an attempt to move them all to the left. See image.
The print command works fine from within the loop but the animate parameter only seems to animate the last object on the list.
Anyone know why this is happening and/or how I can resolve it?
Unless anyone knows of a better way, I found that passing each of iterations to a separate function which contains the animation code seems to do the trick. See image.
Chief 3D Verger | LinkedIn | Twitter
Actually Im having a very similar problem using the ‘Append Scene’ and When Loaded Do..’ puzzle within a ‘For Each item’ loop.
Basically the code loads in various objects/scenes and then I try to position them at the same positions is object in a list. However, only the last object seems to ever get positioned.
I tried using the same trick as before by creating an external function to run on each cycle but it still only positions the last one. Any ideas?
Test your math:
Log in / Register