WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-01-2013, 11:35 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble picking text3d objects Salvar Vizard 4 12-01-2010 03:07 PM
static or dynamic objects shahramy Vizard 2 11-10-2010 12:32 AM
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 03:09 AM
multiple objects durf Vizard 1 04-10-2009 01:42 PM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM


All times are GMT -7. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC