WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-11-2008, 08:17 AM
jaclyn.bill jaclyn.bill is offline
Member
 
Join Date: Oct 2007
Posts: 42
color

Hi,

Quick question, I have programmers block on this.

I have a script set up in which a ball.ive pops up on the screen, moves, then repeats this in a timer loop many times.

I want the ball to occasionally be colored red. i have a previously defined list of when I want this to happen. Just picking out bits that are relevant here.

Code:
color_select = [0,50,0,0,0]

...

CS = color_select[i]

...

if CS == 50:
					ball2.color(1,0,0)
			if CS == 0:
					ball2.color(viz.clearcolor)
The ball goes red but then stays like that, but I want it to look normal on "0" trails. Is there a simple command for removing colour, the viz.clearcolor is obviously wrong.

Thank you in advance.

JB
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
red/green anaglyphic ghosting michaelrepucci Vizard 2 10-22-2008 10:26 AM
Another color question mjabon Vizard 4 07-31-2007 03:04 PM
changing the color of Shirt of Vizard Avatars Amit Vizard 2 09-02-2005 08:00 AM
Changing the Color of On-the-Fly Objects vjosh Vizard 1 01-04-2005 11:48 PM
Fog Color bstankie Vizard 1 06-02-2004 01:59 PM


All times are GMT -7. The time now is 08:03 PM.


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