View Single Post
  #3  
Old 04-01-2013, 01:44 PM
javadi javadi is offline
Member
 
Join Date: Mar 2013
Location: London
Posts: 33
Quote:
Originally Posted by Jeff View Post
You can create a group node for this:
Code:
import viz
import vizact
viz.go()

group = viz.addGroup()
soccerball = viz.addChild('soccerball.osgb',pos=[-0.5,1.8,1.5],parent=group)
basketball = viz.addChild('basketball.osgb',pos=[0,1.8,1.5],parent=group)
volleyball = viz.addChild('volleyball.osgb',pos=[0.5,1.8,1.5],parent=group)

vizact.onkeydown(' ',group.visible,viz.TOGGLE)
Great. Thanks for your detailed reply. I appreciate it.

I have a question. Where can I find the list of keywords - such as 'pos' - that I can use for adjustment of children, like orientation? I suppose 'pos' here is similar to 'preTrans' for links. We have a lot of freedom with links, how is it with children in relation to parents defined as such?

Cheers,
Reply With Quote