|  | Re: fade expression by Les Stuck on Jul 14, 2008 at 2:59:33 pm |
This is a slightly different question from your post
on the Apple Shake forum,
so here's a slightly different reply.
First of all, read pages 140-144 of the tutorial:
/Applications/Shake/doc/Shake4Tutorials.pdf
You'll want to do basically the same thing.
Make sure that both local variables are float,
limiting their values to between 0 and 1.
Follow the tutorial closely, but keyframe animVal
to go from 0 to 2. In fade's value window, modify the
expression to this:
rndVal * animVal + animVal
Check out the Curve Editor. You'll see that
when animVal goes above 1, value is always above 1.
Since value is float, any value above 1 is clamped to 1.
If you want each fade node to be slightly out of
sync with the others, then copy and paste your fade nodes,
and use this for rndVal
rnd(time + X)
where X is the frame offset for that fade node.
To make things go in the opposite direction, make animVal go from 2 to 0.
Les
www.stuckfootage.com
| |