View Single Post
  #4  
Old 04-16-2012, 08:42 AM
torbeng torbeng is offline
Member
 
Join Date: Apr 2012
Posts: 11
Thanks a lot, this seems to work, at least with some models. For some reason, it does not work with all - I'll have to investigate a bit. Maybe it is a format-specific glitch. Here is an example:

Code:
import viz
viz.go()

root = viz.addGroup()
model = viz.add('dojo.osgb',parent=root)
model2 = viz.add('table.wrl',parent=root)
model2.setPosition(2,2,2)
model.setEuler(99,0,0)
model.setPosition(1,1,1)
root.save('dojoandtable.ive')
root.remove()
viz.add("dojoandtable.ive")
If you comment out the last two lines, the table is floating in the air. If you don't, the table is one the floor.
Reply With Quote