ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud Debate

Re: Expression to change value of keyframe

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: Expression to change value of keyframe
by on Jun 5, 2012 at 2:46:52 pm

I don't know if this helps, but this Birth Rate expression should give you a burst of particles at each layer marker:


burst = 10;

n = 0;
m = marker;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n--;
}
if (n > 0 && Math.abs((m.key(n).time - time)/thisComp.frameDuration) < .5)
burst
else
0


Dan



Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]