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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Display the next step name from Creo Illustrate

AS16
13-Aquamarine

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!

ACCEPTED SOLUTION

Accepted Solutions
sebben
14-Alexandrite
(To:AS16)

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.

View solution in original post

5 REPLIES 5
sebben
14-Alexandrite
(To:AS16)

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.

mwodarz_INNEO
14-Alexandrite
(To:sebben)

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

(Presales) Senior Technical Consultant @ INNEO Solutions GmbH (Germany)

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

Thanks Clark for the answer.

Hope for the next updates.

 

Cheers

Marco

(Presales) Senior Technical Consultant @ INNEO Solutions GmbH (Germany)
AS16
13-Aquamarine
(To:sebben)

Hi @sebben,

 

Thanks for your help. 

Announcements

Top Tags