View Single Post
  #9  
Old 08-01-2006, 09:39 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Exporting the positions to a python file would definitely be the easiest way to access them. Would the exporter allow you to name the points? If so then it seems like all you have to do is generate a python script that declares global variables containing the points. Example:
Code:
#test.py
point1 = [0,1,0]
point2 = [2,0,0]
Then your script would access them as follows:
Code:
import test
node1.translate(test.point1)
node2.translate(test.point2)
I agree with you that this solution is not very portable. If you decide to go the xml route, I can supply you with some sample python code that can parse xml files. This way you can create a vizard plugin that allows you to add the xml files like so:
Code:
test = viz.addPoints('test.xml')
node1.translate(test.point1)
node2.translate(test.point2)
Either of these seem like usefull features, so let me know if you need help implementing them.
Reply With Quote