www.ssontech.com Forum Index www.ssontech.com
SynthEyes Camera Tracker Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tracker to Tracker Distance

 
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT)
View previous topic :: View next topic  
Author Message
damian_d3



Joined: 16 Apr 2008
Posts: 61

PostPosted: Thu May 20, 2010 9:43 am    Post subject: Tracker to Tracker Distance Reply with quote

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
View user's profile Send private message Visit poster's website
Martin Kulig



Joined: 03 May 2009
Posts: 8
Location: Cologne, Germany

PostPosted: Tue May 25, 2010 6:46 pm    Post subject: Reply with quote

Thanks! Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT) All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group