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

Calling functions with voice commands

SOLVED
Roman_G
Participant

Calling functions with voice commands

Hello,

I was trying to call a function setModel(); with by using Application Events with voice Commands.

First thing I tried was simply calling the function: 

setModel("schwader_aufgeklappt_Low.pvz");

But that seemed not to be working, after a bit of searching here, I found a post here that said, that I have to use viewCtrl. before that

viewCtrl.setModel("schwader_aufgeklappt_Low.pvz");

So I gave that a try. In preview it is now working, but isn't working on the HoloLens itself.

Does anyone have clue why that is and how to fix it?

Roman_G_0-1617206417148.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Calling functions with voice commands

try this

 

app.setModel("schwader_aufgeklappt_Low.pvz");

 

whitelist in View.js declare function using

$scope.app.setModel = function(val){
  $scope.view.wdg['model-1'].src=...
}

 

View solution in original post

1 REPLY 1

Re: Calling functions with voice commands

try this

 

app.setModel("schwader_aufgeklappt_Low.pvz");

 

whitelist in View.js declare function using

$scope.app.setModel = function(val){
  $scope.view.wdg['model-1'].src=...
}

 

View solution in original post

Announcements
Join an
AR Working Group!

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