View Single Post
  #3  
Old 04-19-2007, 09:48 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you want the other objects to spin relative to D1, then you should add those objects as children of D1. For example:
Code:
d1 = viz.add('mymodel.osg')
d2 = viz.add('mymodel.osg',parent=d1)
.
.
d5 = viz.add('mymodel.osg',parent=d1)


d1.spin(0,1,0,45)

#These objects will spin around d1 z-axis
d2.spin(0,0,1,45)
.
.
d5.spin(0,0,1,45)
Reply With Quote