WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 12:08 PM.


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