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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

play sequence from button

krthk86g
12-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

$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
 
 

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. 

Hi,

 

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

 

Regards,

Karthik

Top Tags