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.

3DSM Click to Play Animation and Stop

Home Forums Puzzles 3DSM Click to Play Animation and Stop

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3110
    rockybaceable
    Participant

    Hello,

    I’m working on building a Verge3D scene where you can click on a piece of a 3D pick-up truck model and it will trigger the animation of that piece. Currently, in 3DS Max, the model is broken into several different pieces, and six of those pieces are animated. They are all animated at the same time to open and close over 100 frames (1-25=open, 25-50=hold open, 50-75=close, 75-100=hold closed).

    I’m trying to make puzzles allow the user to click on one of these six parts to have it open and hold, and then click again to close. When I load the GLTF file into the App Manager, all of the animations play and loop by default. I was able to prevent them from starting by adding EVENT pieces (as shown in the screenshot). I was also able to trigger an animation of an individual piece by clicking on it, but once it is clicked, the animation loops regardless of what kind of ANIMATION puzzle piece is in place (as shown in screenshot, I have it set to only play from 0-75 to open and then close, but for some reason it loops). I need the animation to NOT loop.

    :unsure: How can I make it so one click will trigger half of the object’s animation (opening), and another click will trigger the remaining half (closing)?

    :unsure: Additionally, is it possible to trigger a text pop-up that also appears when the object is first clicked, and then disappears when clicked a second time?

    I’m looking for anyway for this to be possible. I noticed in the recliner demo, you are able to click the chair icon that is along the bottom open and then closed. This could also work for me, but my main problem is the animation is looping when it should stop.

    Thank you!

    -Rocky

    #3118

    How can I make it so one click will trigger half of the object’s animation (opening), and another click will trigger the remaining half (closing)?

    It can be made by Play Animation node from ne frame to another and then play the same frames but set it to reverse. To avoid looping you need to set a loop mode for each object to Once. You can find it in object’s preferences in Verge3D tab.

    Additionally, is it possible to trigger a text pop-up that also appears when the object is first clicked, and then disappears when clicked a second time?

    Yes, you can use Set Annotation/Remove annotation block with combination of Variable with boolin information and IF operand. For example create Clicked=0 then On Click block will check with If operand is Clicked=0 if it’s True then Show annotation and write to Clicked=1 if it is =1 then Hide block and write to Clicked=0.

    Co-founder and lead graphics specialist at Soft8Soft.

    #3160
    rockybaceable
    Participant

    hi again Mikhail,

    thank you for the reply, I will try it out. I’m having trouble locating the object preferences in the Verge3D tab? In 3DS Max, the Verge3D tab along the top only contains “Export gltF”, “Export Facebook GLB”, “Sneak Peek”, and “Run App Manager”. Should the object preferences be in 3DS Max somewhere? Or in the App Manager?

    Thank you!

    #3162

    It’s here in the object’s preferences tab.

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

    Co-founder and lead graphics specialist at Soft8Soft.

    #3172
    rockybaceable
    Participant

    Thank you, I found it.

    Interestingly enough, the Verge3D Animation Parameters in the modify panel was not appearing at first. It may have something to do with the fact that the model was created before the plugin was installed. When I create a new object, the Verge3D parameters are there. What I ended up doing was copying all of the objects in my scene, and then deleting the copies. Then, for whatever reason, the parameters then appeared on the original objects.

    Thank you again for your quick reply!

    -Rocky

    #3204

    Hi!

    Yep, animation params are created on object creation. However, there is a utility button (“Utilities” panel -> “MaxScript” -> “Verge3D” -> “Register Verge3D menu” -> “Add Verge3D Params”) which will help you to do the same for the existing objects.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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