Skip to main content
16-Pearl
April 14, 2021
Solved

setupTrackingEventsCommand error

  • April 14, 2021
  • 2 replies
  • 1764 views

Hi, there

 

Took List of Vuforia Studio events which we could be used as listener by javaScript/angular.js and How to get camera position? as reference.

 

Console Error "Wasn't able to setupTrackingEventsCommand because view object is not available." while experience loaded.

 

Click a button  triggers

myTestFunction()

Nothing happen.

 

What do I miss here?

Thank in advance.

Best answer by dsgnrClarK

works with

$scope.getProps = function(){
 tml3dRenderer.setupTrackingEventsCommand (function(target,eyepos,eyedir,eyeup) {}
}

2 replies

21-Topaz I
April 14, 2021

@dsgnrClarK,

what is the project type (3d mobile or Eyewear)? 

And where the issue occurred - believe in Preview mode in chrome - so you mentioned console window, right?

Thanks

16-Pearl
April 15, 2021

Hi, @RolandRaytchev 

 

I tried both Mobile & 3D Eyewear experiences.

The Error message shows up in both experience (Chrome Preview Console).

 

One thing should be corrected.

On both Devices, while myTestFunction() triggered.

Label value shows 'Undefined'.

 

Thank you.

 

regards

dsgnrClarK16-PearlAuthorAnswer
16-Pearl
June 24, 2021

works with

$scope.getProps = function(){
 tml3dRenderer.setupTrackingEventsCommand (function(target,eyepos,eyedir,eyeup) {}
}