WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-09-2010, 06:39 AM
nachac nachac is offline
Member
 
Join Date: Mar 2010
Posts: 5
Post Marker moves in x-direction

Hi everybody,

I've got following problem:
I've got a marker and want to cause an action when this marker was moved into x-direction.

So how can I measure this marker was moved for e.g. 0.3 in x direction?
y- and z- direction are unimportant in this case. Is there any function?

Thanks for your help!
Reply With Quote
  #2  
Old 07-12-2010, 05:41 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could get check the position of the marker in Vizard every frame and if the x value is greater than 0.3 you could start the action.
Code:
def checkPosition():
	
	if tracker.getPosition()[0] > 0.3:
		#add some action here

vizact.ontimer(0,checkPosition)
Reply With Quote
  #3  
Old 07-26-2010, 05:15 AM
nachac nachac is offline
Member
 
Join Date: Mar 2010
Posts: 5
Thanks a lot!
This was exactly the answer I wanted to know ;-)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Be a Marker for Camera Tracking CRI Vizard 2 05-31-2010 02:09 PM
AR Marker masking properties CRI Vizard 0 03-27-2010 12:33 AM
marker id plug-in Vkathrynr Precision Position Tracker (PPT) 1 09-25-2009 04:31 PM
Tracking with Marker ID plugin mjabon Precision Position Tracker (PPT) 9 07-13-2009 12:36 PM
Draw Vector in viewpoint lookat direction Chrissy2009 Vizard 2 05-30-2009 01:50 AM


All times are GMT -7. The time now is 01:50 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC