PDA

View Full Version : Extend the glow


Flaye
07-27-2007, 12:06 PM
Is there a way to extend the time a glow stays on an object? A setup was built using a distance and condition nodes + set driven keys where as soon as the "sensor" object is within set range (established by the condition node) to the glowing object, the glow attribute gets keyed, and goes back down to zero once the "sensor" moves away.

My question is: is it possible to keep the glow on for a few frames longer AFTER the "sensor" object is out of range?

In other words....think of a pinball machine. Bouncers are off until ball hits them. Once the ball hits the bouncer, bouncer glows (even after ball has moved away) and stays glowing for a set number of frames.

Thanks for your help.

Flaye
07-30-2007, 06:58 PM
We've found an alternate solution using SDK's and color ramps to trick the glow to stay longer, but I'm still interested to know if there's anyway to trigger the glow on the object as soon as the sensor is within the set distance (using the distance and condition nodes), and then keep it on after the distance of the sensor object has moved away (changed it's value).

I'll post a test file shortly.

Thanks.

trancor
07-30-2007, 07:25 PM
Could have made another channel that simply counts the frames after the switch is hit and do an if statement.

$i=$i++;
setAttr switchObject.count $i;
int $runner=`getAttr switchObject.count`;
if ($runner>=5){
Alter the glow here.
}

or simply

$i=$i++;

if ($i>=5){
Alter the glow here.
}


I don't really know how you are implimenting the script, but seeing how you found another way of doing it, I guess it really doesn't matter.

CGTalk Moderation
07-30-2007, 07:25 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.