Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
var labelId = "label-1";
$scope.$on('newStep', function(evt,arg ) {
$scope.setWidgetProp( labelId, "text", arg); // get the currentStep from the arg
})
I am using the above code for displaying instructions of a model. Now I am also using switch case to select the required pvi file. I have a play button which is binded with 4 different models. All 4 models should play their respective animations but only the instructions of the first model should be displayed.
I assume this code is not getting the currentStep, but setting arg to labelID.text.
$scope.setWidgetProp( labelId, "text", arg); // get the currentStep from the arg
Maybe you would take this as a reference.
https://community.ptc.com/t5/Vuforia-Studio/Step-instruction-by-javascript/m-p/649425
regards,