cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Display step instructions for specific model

Ace_Rothstein
11-Garnet

Display step instructions for specific model

 

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. 

1 REPLY 1

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,

Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection