#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
Thanks a lot!
This was exactly the answer I wanted to know ;-) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |