-
Gradually increase Wiggle over time by pixel — Not by layer
I’ve been trying to ramp up the wiggle effect on a per-pixel basis, not the entire layer. I’ll give two examples. 1. If you can imagine a rope that you whipped. Near your hand let’s say that the wiggle is non-existent. (0,0) and at the very end of the 15ft rope there is a lot of movement. 2. Another example would could be a spray nozzle on a garden hose. Near the gun/nozzle the particles spray out straight. As the particles get further away, wind and colliding forces of the droplets cause turbulence. In either case the turbulence increases gradually. (Particles that have just been born don’t wiggle. Particles that are near death wiggle a lot.) The closest script I’ve come across is from Dan Ebbert’s here at the Cow, but from what I can tell it’s gradually ramping the wiggle of the entire layer.
fStart = 100;
fStop = 200;
fRamp = 5;
amp = 5;
freq = 5;
tStart = framesToTime(fStart);
tStop = framesToTime(fStop);
tRamp = framesToTime(fRamp);
if (time < (tStart + tStop)/2)
a = linear(time,tStart,tStart+tRamp,0,amp)
else
a = linear(time,tStop-tRamp,tStop,amp,0);
wiggle(freq,a)