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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Calling functions with voice commands

Roman_G
4-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

 

ACCEPTED SOLUTION

Accepted Solutions

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

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=...
}

 

Announcements

Top Tags