Quote:
Originally Posted by Jeff
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,