Solved
Play a specific step of a sequence
I have a number of steps in a sequence and I would like to trigger one particular step only without playing the whole sequence from the beginning. For instance, play step 4 directly by clicking a button.
I have a number of steps in a sequence and I would like to trigger one particular step only without playing the whole sequence from the beginning. For instance, play step 4 directly by clicking a button.
Hi,
That's say we have 'model-1' ready and a Sequence selected.
With code in home.js:
$scope.playSpecificStep = function(num){
$scope.view.wdg['model-1'].currentStep = num;
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.play')
}, 200)
}
Specific step could be played with Widget\ Events\ JS Expression like below
playSpecificStep(3); // play step 3
playSpecificStep(7); // play step 7
regards,
ClarK
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.