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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How Do i get in the HoloLens back into the library with a command

JS_10688265
3-Newcomer

How Do i get in the HoloLens back into the library with a command

Hello

How do i get back from the experince to the library with a command. I found the command $scope.goToLibrary(); but it doesn't work. I know that i get back to the scan process with a voice command, but i want to get back with a button press.

Can someone help me please, thanks in advance

 

2 REPLIES 2

It appears like you are on the right track by pressing a button to return to the Vuforia Studio library. The command $scope.goToLibrary(); should work.

  • Create a Button: Simply drag and drop a button widget onto your canvas.
  • Set up the Click Event: Select the button and navigate to the DETAILS pane.
  • Add Javascript, Click on the JS icon next to the Click event.
  • Enter the command, In the Expression box, type the following JavaScript code: $scope.goToLibrary();

This should link the $scope.goToLibrary(); function to the button push, allowing you to return to the library whenever the button is hit.

 

Invoke Functions from a Button -https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/Beginner_JSInvokeFunction.html

 

Is this helpful in resolving your issue?

Hi,

Firstly thanks for your answer.

I have already tried that command via function in the javascript function and linking the button to it, but this way it doesn't work.

Have I to implement directly into the button to make it work, or can i use the javascript command section and use it via function?

Announcements

Top Tags