|
|
Yes!
It has 2 keyframes - 0 and then100 with the decay expression:
amp = .03; freq = 3.0; decay = 7; n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; }} if (n == 0){ t = 0; }else{ t = time - key(n).time; } if (n > 0){ v = velocityAtTime(key(n).time - thisComp.frameDuration/10); value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{value}
Does Layer A have scale keyframes? If so, would it make sense for Layer B to follow Layer A after a particular keyframe (like last or next-to-last)?
Dan
-----Original Message----- From: Rachel Max Sent: Monday, February 10, 2014 2:18 PM To: After Effects Mail List Subject: Re: [AE] scale expression
That’s good Dan but the Layer B isn’t decaying properly because it needs to go below 100 for that.
I was thinking of making it time based but I’d still be in the same boat.
Thanks, Rachel
On Feb 10, 2014, at 12:20 PM, Dan Ebberts <debberts@comcast.net> wrote:
This should case layer B's scale to follow Layer A, only when A's scale is larger than B's:
s = thisComp.layer("Layer A").transform.scale; [Math.max(s[0],value[0]),Math.max(s[1],value[1])]
Dan
-----Original Message----- From: Rachel Max Sent: Monday, February 10, 2014 12:01 PM To: After Effects Mail List Subject: [AE] scale expression
Happy Monday,
I have layer A that is scaling from 0 to 100 - and then has a nice decay thanks to an expression from Dan.
I have layer B that I’d like to be synced up with layer A (going past 100 and then have the decay) - however layer be is already on the screen and I only want to the scale past 100 and then bak to 100 with the decay.
What would you suggest dear kind list?
Thanks, Rachel +---End of message---+ To unsubscribe send any message to <ae-list-off@media-motion.tv>
+---End of message---+ To unsubscribe send any message to <ae-list-off@media-motion.tv>
+---End of message---+ To unsubscribe send any message to <ae-list-off@media-motion.tv>
+---End of message---+ To unsubscribe send any message to <ae-list-off@media-motion.tv>
|
|