| View previous topic :: View next topic |
| Author |
Message |
damian_d3
Joined: 16 Apr 2008 Posts: 61
|
Posted: Thu May 20, 2010 9:43 am Post subject: Tracker to Tracker Distance |
|
|
When you need to know the distance of 2 trackers
| Code: |
//SIZZLET Tracker to Tracker Distance
ob = Scene.activeObj
msg = ""
cnt = 0
for (tk in ob.trk)
if (tk.isSel && tk.isSolved)
cnt++
tst[cnt]= tk.wvec
end
end
if (cnt == 1)
msg = tst[1]
end
if (cnt == 2)
dis = tst[1] - tst[2]
msg = dis.length
end
Message(msg) |
|
|
| Back to top |
|
 |
Martin Kulig
Joined: 03 May 2009 Posts: 8 Location: Cologne, Germany
|
Posted: Tue May 25, 2010 6:46 pm Post subject: |
|
|
Thanks!  |
|
| Back to top |
|
 |
|