We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Trouble animating all objects in a list

Home Forums Puzzles Trouble animating all objects in a list

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47238
    grimmy
    Customer

    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?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #47245
    grimmy
    Customer

    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. :)

    Attachments:
    You must be logged in to view attached files.
    #47261

    :good:

    Chief 3D Verger | LinkedIn | Twitter

    #47278
    grimmy
    Customer

    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?

    Cheers

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.