View Single Post
  #3  
Old 08-30-2016, 11:55 AM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Thanks, Jeff, I'll try the second approach. I have another question:
Is there a way to give targets a custom name and retrieve this name with manager.getActiveTargets(sensor=e.sensor)?

Right now this gives me a list like this:
Code:
[Target(source=LinkableSource(linkable=__builtin__._VrpnTracker(2), flag=0)), Target(source=LinkableSource(linkable=__builtin__._VrpnTracker(1), flag=0))]
But I'd like to get names for the targets like 'right hand' and 'left hand'. I know I can get the source object of a target, but I haven't found one that has a name attribute.
Reply With Quote