Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
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?
Solved! Go to Solution.
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=...
}
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=...
}