ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Re: text animator triggered by comp marker

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Dan EbbertsRe: text animator triggered by comp marker
by on Jun 14, 2012 at 5:25:16 am

I'm not sure if this is what you're after, but it might get you headed in the right direction. Set your Scale Animator amount to 0% and apply this expression:


m = thisComp.marker;
n = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n--;
}
if (n > 0){
t = time - m.key(n).time;
startVal = 0;
endVal = 100;
dur = 0.1;
if (t < dur){
s = linear(t,0,dur,startVal,endVal)
}else{
amp = (endVal - startVal)/dur;
freq = 3;
decay = 5;
w = freq*Math.PI*2;
s = endVal + amp*Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w
}
[s,s]
}else
value



Dan



Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]