Blink Anything TUT
Xpresso – by: base80
February 1st, 2006
Have you ever wondered how to make blinking lights. Or blinking anything for that matter.
Join me for a super fast tutorial.
[More:]
Open the xpresso editor.
Put a time-node and set it to output in frames.
Add two math nodes, the first set to Modulo, the second set to Divide.
Connect a constant to the second port of both math-nodes. This constant will set the delay at which to blink (in frames).
Now comes the magic part, the Flip-Flop-node. Connect the output of the second math node to the Flip-Flop.
That is it actually!
Connect the output of the flip flop to anything you want, this can be visibility in the renderer, or brightness of a light, or a color channel of a texture, whatever.
Here is the setup;
The Flip-Flop, when triggered, changes from 0 to 1 and back. In this case the trigger is the time with some stuff attached.