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.

How to stop Animation in Camera Tour

Home Forums General Questions How to stop Animation in Camera Tour

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #64882
    aqiang
    Customer

    Hello everyone,

    I am working on a camera roaming interface and I have added a pause button. However, I can’t find a method to pause the animation. Through backend logging, I discovered that the camera animation I’m using is app.control.itween(), and it does not utilize tween.js, which provides a .stop() method. I’m wondering if orbit.control has not defined or provided a similar .stop() method? Any advice or suggestions would be greatly appreciated. Thank you.

    Attachments:
    You must be logged in to view attached files.
    #64898
    xeon
    Customer

    I am interested to see if anyone has a solution to this based on JS.

    Another approach would be to change your camera rig in blender.
    You would want to have the camera attached to an empty that is the “look at target”.
    Basically place the empty where you want the camera to be looking.

    Once you have this you can move / animate the camera object and the associated empty without using tween. By doing this you can interrupt the animation sequence.

    I have not found any way to interrupt a camera tween yet. Would be nice if we could.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #64899
    kdv
    Participant

    As a variant, do not use tween camera, use animate param instead.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #64904
    aqiang
    Customer

    I’ve used an animation with an extremely small distance and a duration of zero as a workaround to stop the animation, which has solved the issue mentioned above. Thank you.

    #64906
    kdv
    Participant

    I am interested to see if anyone has a solution to this based on JS

    This single line of code will interrupt tweening at any moment.

    https://v3d.net/lf3

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

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