WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-24-2009, 10:17 AM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
Exclamation Timer

how can I make my balloons appear for 5 sec then disappear?
HTML Code:
import viz
import vizact
import viztask
viz.go()
import random
def func1():
	balloons = []
	for i in range(-5,6):
		for j in range(1,6):
			balloon = viz.add('art/balloon.ive')
			balloon.setPosition( i*.8,.1,j*.8 )
			R = random.random()
			G = random.random()
			B = random.random()
			balloon.color( R, G, B )
			balloon.specular( viz.WHITE )
			balloon.shininess( 128 )
			balloons.append( balloon )
	vizact.waittime(5)
	
	for balloon in balloons:
		balloon.visible(viz.OFF)
	
vizact.onkeydown('a', func1)
Thanks
Reply With Quote
  #2  
Old 04-24-2009, 11:01 AM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
I got it thanks chaps!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Timer cycling correctly? JMOwens Vizard 2 12-07-2007 09:57 AM
timer question again Elittdogg Vizard 3 10-18-2007 10:29 AM
timer question Elittdogg Vizard 5 10-10-2007 02:49 PM
Timer speed Jerry Vizard 1 12-08-2006 11:01 AM
timer paulpars Vizard 2 06-14-2006 02:31 PM


All times are GMT -7. The time now is 08:13 AM.


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