Solved
how to change model sequence
Hi, i created a Three of sequence.
but ThingWorx studio can select one sequence
I want to change a sequence via button or list
how can i change sequence at running app
Thank you
Hi, i created a Three of sequence.
but ThingWorx studio can select one sequence
I want to change a sequence via button or list
how can i change sequence at running app
Thank you
Hi,
Here is my suggestion:
Add the following JavaScript code:
$scope.FirstSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%201.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
$scope.SecondSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%202.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
$scope.ThirdSequence = function() {
$scope.view.wdg['model-1']['sequence'] = 'l-Creo%203D%20-%20Figure%203.pvi';
$scope.$applyAsync();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
};
FirstSequence();
$timeout(function() {
$scope.$broadcast('app.view["model-1"].svc.playAll')
}, 400)
Best of luck,
Ricardo
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.