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.

Animating cloned objects

Home Forums Programming Animating cloned objects

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #32640
    Avataroriggin
    Newbie

    Hi guys,

    Problem Scenario
    I have some doors in my scene which consist of some objects (frame, trail, sheets…) with the frame as their parent.

    The door sheets have been animated using keyframes in blender (position and rotation).

    These doors get cloned several times, to fit all floors.

    I am using puzzles to play the animations, but it is not working as expected.

    The puzzles play only the animations on the original objects. I tried to debug it and I found something interesting:

    Verge tries to find the animation by objects name (getAnimationActionByName()), comparing the name of the object to all items inside an array (e.actions).
    Inside this array I could only find the animations of the original objects and nothing from the cloned ones.

    So, I suppose this is the reason it does not animate the cloned objects.

    Now I am looking for a way to fix this problem. I need to animate every door individually. Is there a way to clone the animations as well?

    #32652
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    when an object is cloned, a new name is assigned to it automatically and returned by the clone puzzle.

    So you can use this new name and the get animations puzzle to obtain a new animation clip to play.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #32678
    Avataroriggin
    Newbie

    Hi,
    when an object is cloned, a new name is assigned to it automatically and returned by the clone puzzle.
    So you can use this new name and the get animations puzzle to obtain a new animation clip to play.

    I had already tried this and it did not work :(

    #32684
    Yuri KovelenovYuri Kovelenov
    Developer

    can you post a screenshot of your puzzles?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #32701
    Avataroriggin
    Newbie

    can you post a screenshot of your puzzles?

    I did not get what you exactly need from my puzzles. I posted a screenshot in my last reply.

    Here is another one with the puzzles that will play the animations in my scene

    #32702
    Yuri KovelenovYuri Kovelenov
    Developer

    looks like the images were not attached :unsure:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #32703
    Avataroriggin
    Newbie

    looks like the images were not attached

    Weird, they appear to me, their link:

    https://image.prntscr.com/image/DcVdjOVIR66BCXFNylcSwA.png
    https://image.prntscr.com/image/Rs6w74TSTnOCfBv7FNxU-w.png

    Can you open it?

    #32710
    Yuri KovelenovYuri Kovelenov
    Developer

    nope, getting 403 Forbidden error

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #32745
    Avataroriggin
    Newbie

    nope, getting 403 Forbidden error

    :(

    Sorry, I am uploading them to the forum. Can you see them now?

    Attachments:
    You must be logged in to view attached files.
    #32785
    Yuri KovelenovYuri Kovelenov
    Developer

    Apparently this is due to a bug in Verge3D. We’ll try to fix this ASAP. Thanks for reporting!

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #32798
    GlifTekGlifTek
    Licensee

    You can also try changing the clones’ names. I THINK I got around this bug by doing this once..

    1st, get the object’s ‘name’ data…

    then rename…

    Hope it helps!
    (Also you can use the exec puzzles now instead of the call JS function. Very handy.)

    #32855
    Avataroriggin
    Newbie

    You can also try changing the clones’ names. I THINK I got around this bug by doing this once..

    This would not work for me because the object names are unique and got constructed using logic. Even the cloned ones are built in the scene using the clone index number as a reference for the floor.

    Unfortunately this same naming logic is being used for other 900+ objects and their state info is eventually sent to other interfaces to be processed for calculations (the project is a product configurator).

    So, changing their names would represent some big changes in the whole project across different environments :(

    By the way, I tried to rename them to their same name (there could be some kind of hidden proxy or observer on the name property) and nothing changed :(

    I will have to wait for a solution from the Verge3D team.

    Thanks anyway ;)

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.