View Single Post
  #2  
Old 05-30-2013, 07:44 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can get a handle to sub-parts of the object and then move them:
Code:
import viz
import vizact
viz.go()

viz.move([0,0,-7])

dojo = viz.addChild('dojo.osgb')
lamps = dojo.getChild('wall lamps-GEODE')

moveRight = vizact.move(1,0,0,time=5)
moveLeft = vizact.move(-1,0,0,time=5)
move = vizact.sequence([moveRight,moveLeft],viz.FOREVER)
lamps.runAction(move)
Reply With Quote