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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Display the next step name from Creo Illustrate

AS16
12-Amethyst

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!

1 ACCEPTED SOLUTION

Accepted Solutions
sebben
12-Amethyst
(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
12-Amethyst
(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
12-Amethyst
(To:sebben)

Hi @sebben,

 

Thanks for your help. 

Top Tags