PDA

View Full Version : Vizard export to xml file


BSUGeek
10-09-2014, 06:03 AM
I'm creating a program that receives the data from the timer and the avatar position. I was wondering is there a way to export that data into an xml file and change the timer format to output MM:SS instead of seconds and milliseconds? and for the avatar can you just get the X position instead of the full x,y,z position?

Jeff
10-10-2014, 03:00 PM
You could search online to see if there is a Python add-on library that writes data to an XML file. The string formatting (http://docs.worldviz.com/vizard/#String Formatting.htm) page in the Vizard help shows examples of formatting in Python. The following code returns the first value (X position) in the position list:

x_pos = avatar.getPosition()[0]