WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Vizard export to xml file (https://forum.worldviz.com/showthread.php?t=5185)

BSUGeek 10-09-2014 06:03 AM

Vizard export to xml file
 
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 page in the Vizard help shows examples of formatting in Python. The following code returns the first value (X position) in the position list:

Code:

x_pos = avatar.getPosition()[0]


All times are GMT -7. The time now is 07:55 AM.

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