Skip to main content
1-Visitor
August 13, 2018
Question

Features not working on Vuforia View

  • August 13, 2018
  • 2 replies
  • 3371 views

I created a pulsing effect for one of my model items using the following code:

 

function pulseBracket(){
 if (pulseBracketEnabled){
 $timeout(function () {
 var blueValue = (50 * (Math.sin(currentAngle))) + 50;
 
 var color = 'rgba(245, 140, ' + blueValue + ', 1)';
 $scope.app.view.Home.wdg['bracket'].color = color;
 pulseBracket();
 }, 5);
 currentAngle = currentAngle + 0.04;
 } else {
	$scope.app.view.Home.wdg['bracket'].color = "";
 }
}

This code works fine in the preview in Vuforia studio, but when I publish it and try to view it on a mobile device using Vuforia View, it doesn't seem to work. Is there any way to view debug logs on Vuforia view to figure out what the problem is?

2 replies

17-Peridot
August 13, 2018

Hello Izdane,

 

Yes it is possible.

It depends of the hardware used.

 

Please see this article to have more detail: 

https://www.ptc.com/en/support/article?n=CS283816

 

Best regards,

Samuel

izdane1-VisitorAuthor
1-Visitor
August 13, 2018

It says it's a maintenance only article. Is there any other way to access it?

17-Peridot
August 13, 2018

Sadly no.

 

What is the mobile who are using ?

I will give you the steps specifically for your hardware.

 

Best regards,

1-Visitor
August 20, 2018

Not sure about device debug log, i have wanted this many times.

 

But as for working on preview and not on device try using $scope.setWidgetProp instead of $scope.app.view.Home.wdg. setWidgetProp seems more reliable when modifying 3D object properties. app.view.Home.wdg seems to only reliably work for modifying 2D objects. These days i Always start with setWidgetProp and that work 90%+ if not then i will try the other method.

 

$scope.setWidgetProp(StudioID, Property, Value);
//example
$scope.setWidgetProp(modelItem-1, 'visible', true);