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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

multiple thingmark/qr codes same experience

GianVal
15-Moonstone

multiple thingmark/qr codes same experience

Hello, I would like to create an experience able to contain multiple thingmarks at the same time (or to make a succession of different experiences as seamlessly as possible). Let me explain: during the navigation, I would like that, by pointing to a thingmark, some information would come out; if I point to another thingmark, different information and so on.
it's possible?

ACCEPTED SOLUTION

Accepted Solutions
sebben
13-Aquamarine
(To:GianVal)

You just write something like this:

$scope.$on("trackingacquired",function (evt, data){
  if(data =="38861:1"){
    $scope.view.wdg["label-1"].text= "Information A"
  }
  else if(data =="38861:2"){
    $scope.view.wdg["label-1"].text= "Information B"
  }
}
          );

Change the ID  to your thingmark IDs and you should see "Information A or B " in the label von you point  to different thingmarks. Note that you need a thingmark target in your experience.

View solution in original post

5 REPLIES 5
sebben
13-Aquamarine
(To:GianVal)

Hi,

 

yes you can use this:

$scope.$on("trackingacquired",function (evt, data){});

The 'data' will contain the thingmark ID which when you point to different thingmarks. You can use it to show different information.

GianVal
15-Moonstone
(To:sebben)

Sorry, can you better explain the method? 

sebben
13-Aquamarine
(To:GianVal)

You just write something like this:

$scope.$on("trackingacquired",function (evt, data){
  if(data =="38861:1"){
    $scope.view.wdg["label-1"].text= "Information A"
  }
  else if(data =="38861:2"){
    $scope.view.wdg["label-1"].text= "Information B"
  }
}
          );

Change the ID  to your thingmark IDs and you should see "Information A or B " in the label von you point  to different thingmarks. Note that you need a thingmark target in your experience.

GianVal
15-Moonstone
(To:sebben)

I set up a simple exp with thingmark without associating any. when the target is acquired the label does not change its text.

what am I missing?

sebben
13-Aquamarine
(To:GianVal)

It works for me... Did you change the thingmark IDs?

You could share your smaple experience and I can take a look.

Announcements

Top Tags