Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! 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,