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

Repeast a sequence

SOLVED
Highlighted
Garnet

Repeast a sequence

Hi,

 

how can I repeat a sequence? JS code would be appreciated.

 

Many Thanks

Janos

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Repeast a sequence

I found a solution. This is able to play a sequence 10 times in all sec.

 

$scope.startseq = function() {
$scope.intervalPromise = $interval($scope.rotate, 1000, 10); 
};


$scope.stopseq = function() {
$interval.cancel($scope.intervalPromise);
};

View solution in original post

3 REPLIES 3

Re: Repeast a sequence

Hello,

Do you want to repeat a sequence completely or do you want to repeat a step?

Re: Repeast a sequence

I found a solution. This is able to play a sequence 10 times in all sec.

 

$scope.startseq = function() {
$scope.intervalPromise = $interval($scope.rotate, 1000, 10); 
};


$scope.stopseq = function() {
$interval.cancel($scope.intervalPromise);
};

View solution in original post

Re: Repeast a sequence

Very Nice!!!

I'll certainly use that later.

 

Great!!!

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