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
    Avatars.imboden
    Licensee

    ( 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
    Yuri KovelenovYuri Kovelenov
    Developer

    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.

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

    #33158
    Avatars.imboden
    Licensee

    thank you very much :-)
    Silvano

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