cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

play sequence from button

Highlighted
Amethyst

play sequence from button

two buttons placed in 2D and a model with 7 sequences loaded into resources

 

1.next

2.play

 

button 1 to load the sequence and button 2 to play the sequence. it works but I have to click them multiple times. 

 

$scope.next = function(){


$scope.view.wdg['model-1'].sequence = "app/resources/Uploaded/l-Creo 3D - 2.pvi";


}


$scope.play = function() {

angular.element(document.getElementById('model-1')).scope().play();

}

3 REPLIES 3
Highlighted

Re: play sequence from button

$scope.play = function() {

angular.element(document.getElementById('model-1')).scope().play();

}

Use the method playAll() to play all the step of sequence.
 
 

$scope.play = function() {

angular.element(document.getElementById('model-1')).scope().playAll();

}

I Hope to help you
Giuseppe
 
 
Highlighted

Re: play sequence from button

I have used the same code but still, the error persists, I guess the loading of the sequence and apply and sync is the issue here. 

Highlighted

Re: play sequence from button

Hi,

 

this is worked, I had an issue in creo illustrate animation sequences.

 

Regards,

Karthik

Announcements
Join an
AR Working Group!

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection