Using "loopOut" With A Delay (and An External Variable)
Hi there, folks!
I'm fairly inept with expressions, so I may be banging my head against a very thin wall here... but basically, I'd like to delay a looped animation (which currently uses "loopOut") by X number of frames, with X being defined by another layer.
At the moment, I have three layers:
- A precomposed animation of a typewriter arm striking a page
- A text layer
- A background
That second layer includes an expression which reveals characters at a random rate, resulting in an organic typewriter effect:
minRate = 3;
maxRate = 6;
charCount = 0;
t = 0;
seedRandom(index,true);
while (t < time){
var RandomRate = random(minRate,maxRate)
charCount++;
t += framesToTime(RandomRate);
}
value.substr(0,charCount)
What I'd really like to do is have "RandomRate" influence when the animation in the top layer plays, either by delaying each loop or adjusting its duration.
The ideal result would see each appearance of a "typed" character being accompanied by a matched instance of the aforementioned animation, such that said animation appears to be typing the letters onto the background.
Put simply, is there a way to have my "RandomRate" variable influence when or how the looped animation in my top layer players?
