-
progressive acceleration with memory
So I have this piece of code for rotation:
amp = 180;
data = thisComp.layer(“Null 2”).effect(“Range 2”)(“Slider”);
inc = ease(data,7,20,0,25);
j = 0;
accum = 0;
while(data>=7){
accum += inc;
}
time*amp+accumand the idea was that it could remember the last frame’s rotation value but accumulate more and more so that it would never go backwards, if you can see what I mean. The problem is I can’t even see whats going on because it timeouts the engine every time “data” hits 7. I’m guessing this has to do with a memory issue, and perhaps a problem with the code too, but I’m not really sure. This is being applied to the rotation and evolution of Fractal Noise, and I am working on a dualcore 2Ghz with about 1.5 gigs of memory for AE to hog. If the interpolation won’t be possible to calculate a progressive acceleration, is there another way? Thanks in advance for any help!