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.

playing chunk of animation forward and backward

Home Forums Programming playing chunk of animation forward and backward

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33134
    s.imboden
    Customer

    ( Verge version 3.3.1 – exporting models from Blender )
    I need to playback chunks of an animation, in forward and in backward direction.

    to play forward from time 3 to time 4 I do:
    var x=app.actions[0];
    var x.setLoop( v3d.LoopOnce);
    x.reset(); x.time=3; x.getClip().duration=4;

    to play backward from time 4 to time 3 I tried:
    x.reset(); x.time=4; x.timeScale=-1; x.getClip().duration=3;
    x.reset(); x.time=4; x.timeScale=-1; x.getClip().duration=-1;

    none of these work, so, whats the right way to play a chunk of an animation backward ?

    thanks in advance — Silvano

    #33143

    Hi Silvano,

    You might take a look at the code that is generated by this puzzle that creates a chunk of animation.

    Also you might inspect the code generated by this puzzle to make it play in reverse.

    The code can be found in the file visual_logic.js in your app folder.

    Chief 3D Verger | LinkedIn | Twitter

    #33158
    s.imboden
    Customer

    thank you very much :-)
    Silvano

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