Skip to main content
1-Visitor
January 13, 2021
Solved

Display the next step name from Creo Illustrate

Hi, 

 

Need advise for my problem regarding my concern on displaying the next step instruction from Creo Illustrate. I need Vuforia to display the current instruction and the next instruction when user click on button. For now, the current step instruction are being displayed, but now I have to display also the next instruction. 


Hope anyone can advise me on this matter. Really appreciate it!

sebbenAnswer
14-Alexandrite
January 13, 2021

Hi,

 you can use the following JS:

var instruction = '';
$scope.$on('newStep', function(evt, arg) {
 instruction = arg

});
$scope.UpdateInstructions = function() 
{
 $scope.app.params.StepText = instruction; 
};
  1. Call  ‘UpdateInstructions’ from the ‘Play Started’ event of the model
  2.  You must have ‘StepText’ application parameter
  3. Bind ‘StepText’ to a label showing instructions on the UI

I hope that helps.

5 replies

sebben14-AlexandriteAnswer
14-Alexandrite
January 13, 2021

Hi,

 you can use the following JS:

var instruction = '';
$scope.$on('newStep', function(evt, arg) {
 instruction = arg

});
$scope.UpdateInstructions = function() 
{
 $scope.app.params.StepText = instruction; 
};
  1. Call  ‘UpdateInstructions’ from the ‘Play Started’ event of the model
  2.  You must have ‘StepText’ application parameter
  3. Bind ‘StepText’ to a label showing instructions on the UI

I hope that helps.

Translate
14-Alexandrite
January 14, 2021

That is a very helpful solution. But it only provide the step name and (current step / total steps)

Is there a way to read the value of the 'step_description' parameter from the .pvi file?

 

Thanks in advance!

 

Cheers

Marco

Translate
16-Pearl
January 18, 2021

I guess it not feasible right now hence the .pvi is embedded in the PVZ file.

Easy way to accomplish this by far would be copy those description to an object/json outside of the PVZ for further usage.

 

Really looking forward that Vuforia Studio would have this capability someday, along with Annotations.

 

regards,

ClarK

Translate