Hello all, I'm new here.
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!
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.