1 Reply Latest reply on Feb 20, 2017 4:10 PM by rpalmer RSS
    kpereira Newbie

    Play specific step of PVI sequence at studio

    Hello all, I'm new here.

     

    I'd like to know if there is a Javascript way to play specific step of PVI sequence at studio?

     

    The following line works to play all steps of animation.

     

    $scope.app.params.sequenceURL = "app/resources/Uploades/<name of PVI file>";
    angular.element(document.getElementById('model-1')).scope().play();
    

     

    Instead, I'd like to play only step 2 using JS. Inside this PVI sequence, there is 3 steps.

     

    Thanks in advanced!

     

    Ewerton Moreira

      • Re: Play specific step of PVI sequence at studio
        rpalmer Newbie

        Hi Kelson,

         

        There is a specific property for the current step in an animation. you should be able to call it as $scope.view.wdg['model-1']['currentStep']

        Then, you can set that equal to 2 if you want to play step 2. After that, you should be able to start playing the animation as you would normally, and it should start on that step, but I'm not 100% certain as I haven't tried it myself.