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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Features not working on Vuforia View

izdane
4-Participant

Features not working on Vuforia View

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?

7 REPLIES 7
sdidier
17-Peridot
(To:izdane)

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

izdane
4-Participant
(To:sdidier)

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

sdidier
17-Peridot
(To:izdane)

Sadly no.

 

What is the mobile who are using ?

I will give you the steps specifically for your hardware.

 

Best regards,

izdane
4-Participant
(To:sdidier)

I'm using an iPad Pro with iOS 11.4

sdidier
17-Peridot
(To:izdane)

Hello,

 

For iOS, please follow these steps :

  1. Connect your device to a computer with iTunes on it
  2. In iTunes, select the device
  3. Select File Sharing in left side menu
  4. Select View in list of apps
  5. Drag logfile.txt to desktop

Best regards,

Samuel

Did It work? I'm having the same issues as you.

jmikesell
15-Moonstone
(To:izdane)

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);
Top Tags