PDA

View Full Version : XPresso logic - help?


brammelo
04-23-2003, 09:44 PM
Hi Guys,

I am building a cartoony disco floor - I need it as a background layer in AE. No need for real lights or raytracing - squares changing colors will sufice. I am trying to automate the color changes of the squares with XPresso.

This is what I have:

"Random" node drives Red, Green or Blue value of Luminance Channel of Material (I used a couple of extra nodes to clip values).

The problem with this situation is obvious: the color changes with every frame. So i need a switch to only allow new values from the "Random" node at given time intervals.

defining the interval is easy as well. Suppose "X" is the interval, then I have the following comparison:

If Time divided by "X" equals the Integer value of Time divided by "X", then the color needs to change. If it is unequal, then the switch needs to block new values from the Random node.

Question is: which node to use as switch, and how to use it? Boolean Node? Switch Node? Flipflop node? To be honest: I haven't got a clue, and I am hoping someone else has.

Cheers,
BaRa

Srek
04-24-2003, 08:12 AM
Hi,
try using the noise node instead of the random. This will allow to adjust the frequency. Also it will change smoothly between values so you can use a multiplier and modulo to get the desired random change over time.

Hope this helps
Srek

brammelo
04-24-2003, 09:52 AM
Hey B.,

I'll give it a try. In any case, it sounds more logical. Might even add some extra control handles for easy tweaking.

Thanks a bunch :-). I'll keep you posted.

Cheers,
BaRa

CGTalk Moderation
01-14-2006, 11:00 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.