ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

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 4:12:18 pm

This version might be closer to what you're after. It fires a burst of particles at each slider keyframe and gets the birth rate value from the slider at the keyframe.


p = effect("Slider Control")("Slider");

n = 0;
if (p.numKeys > 0){
n = p.nearestKey(time).index;
if (p.key(n).time > time) n--;
}
if (n > 0 && Math.abs((p.key(n).time - time)/thisComp.frameDuration) < .25)
p.valueAtTime(p.key(n).time+.01)
else
0


Dan



Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]