WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-06-2007, 10:33 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Based on the code you posted previously, your script will create some text file that contains a bunch of tab delimited numbers. By executing the line of code I mentioned, when the user reaches some point or when you press a button your text file will look something like this:
Code:
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
*** Reached point A
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
*** Reached point B
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
1    1.1    6.2    0.8    1.8    7.8    3.4
.
.
.
This will let you know at which point in the data the event occurred. It is up to you to know when to write this flag to the text file. If you want to add it when a key or button is pressed, then you will need to register an event callback. For example, the following code will write the flag to the file when the space key is pressed:
Code:
def WriteFlag():
	tracking_data.write('*** Reached point A\n')
vizact.onkeydown(' ',WriteFlag)
If you want to add it when the user reaches some location, then you will need to manually detect if the user has reached the checkpoint, then write the flag to the file. Hope this clears it up a little, let me know if you still have questions.
Reply With Quote
  #2  
Old 09-10-2007, 08:12 AM
Elittdogg Elittdogg is offline
Member
 
Join Date: Aug 2007
Posts: 77
Thank you so much. That really helps. Sorry for any confusion.
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


All times are GMT -7. The time now is 11:27 AM.


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