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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Playing multiple sequences with Hololens

jjaaskelainen-2
2-Guest

Playing multiple sequences with Hololens

Hello,

is it possible to play multiple sequences in Hololens experience? I tried with following:

$scope.app.closedoors = function() {

  var modelEle1 = angular.element(document.getElementById('model-1'));

$scope.view.wdg['model-1'].sequence = "Uploaded/l-Creo 3D - Figure 1.pvi";

  $timeout(function() {modelEle1.scope().playAll();},1000);

  $scope.$applyAsync();

}

$scope.app.locateissue = function() {

  var modelEle1 = angular.element(document.getElementById('model-1'));

$scope.view.wdg['model-1'].sequence = "Uploaded/l-Creo 3D - Figure 2.pvi";

  $timeout(function() {modelEle1.scope().playAll();},1000);

  $scope.$applyAsync();

}

This works fine in preview and this works with mobile experience but it won't work with Eyewear project.

Best regards,

Juho-Matti

4 REPLIES 4

How did you get this to work in the preview? Did you invoke the functions closedoors() and locateissue() in the JS for Application Events?

Hello,

yes I used the Application Events for trigger those JS in Preview.

Br.

Juho-Matti

Thanks. But I too am facing the same problem as you have. It is working in Preview but not on the HoloLens.

Hey,

Can you explain why we are using this '$' for $applyAsync in this command:

$scope.$applyAsync();

It seems to be working in Preview if we remove the '$' symbol.



Top Tags