View Single Post
  #3  
Old 08-24-2010, 10:21 AM
masaki masaki is offline
Member
 
Join Date: Jan 2008
Posts: 63
Hi,

I'm not 100% sure what you're trying to accomplish but here is an example of a two text object hierarchy. text1 is parented to the groupNode and text2 is a child of text1. They have actions applied to them independently but they spin/move in their parents coordinate system.

Best,
Masaki

Code:
import viz
viz.go()

groupNode = viz.addGroup()

text1 = viz.addText( 'Parent',pos=(0,3,5), parent=groupNode )
text2 = viz.addText( 'Child',  pos=(0,-1,0), parent=text1 )

spin = vizact.spin( 0,45,0,speed=45 )
text1.addAction( spin )

move = vizact.sequence( [vizact.move([0,1,0],.5), vizact.move(0,-1,0,.5)], viz.FOREVER)
text2.addAction( move )
Reply With Quote