Community Tip - You can change your system assigned username to something more personal in your community settings. X
Greetings Guys,
I have two selectable things in my 2D-Widget List in Vuforia Studio.
If I select Item 1 and press play, it starts with the animation from the beginning which is good.
Altogether my Sequence has 10 Steps. Item 1 is between Step 1 and Step 5. Item 2 is between Step 6 and Step 10.
How can I jump directly into Step 6 if i select Item 2?
At the moment the code looks like this:
$scope.setsequenceList = function(){ $scope.app.params.sequenceList = [ { "display":"Item 1", "value":"app/resources/Uploaded/l-Creo%203D%20-%20Abbildung%202.pvi" }, { "display":"Item 2", "value":"app/resources/Uploaded/l-Creo%203D%20-%20Abbildung%202.pvi" } ] } $scope.setsequenceList();
Its like Item 2 is the same like Item 1. They both start in Step 1.
What do I have to change or rather to add?
I hope you can help. I would appreciate 🙂
Solved! Go to Solution.
If you look at the Model widget you will see a value for CurrentStep. You will need to set this to the step you want to start on before you start playing the sequence.
So something like:
$scope.setWidgetProp('model-1', 'currentStep', 6);
If you look at the Model widget you will see a value for CurrentStep. You will need to set this to the step you want to start on before you start playing the sequence.
So something like:
$scope.setWidgetProp('model-1', 'currentStep', 6);