Return-Path: Received: from nk11p08mm-asmtp002.mac.com ([17.158.58.247] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5372717 for AE-List@media-motion.tv; Mon, 10 Feb 2014 23:33:07 +0100 Received: from [192.168.0.240] (50-0-196-100.dedicated.static.sonic.net [50.0.196.100]) by nk11p08mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N0S00823XJ0IM40@nk11p08mm-asmtp002.mac.com> for AE-List@media-motion.tv; Mon, 10 Feb 2014 22:37:49 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-02-10_04:2014-02-10,2014-02-10,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1402100143 From: Rachel Max Content-type: multipart/alternative; boundary="Apple-Mail=_578C7F5B-4719-4541-9155-889777162182" Subject: Fwd: [AE] scale expression Date: Mon, 10 Feb 2014 14:37:48 -0800 References: To: After Effects Mail List Message-id: MIME-version: 1.0 (Mac OS X Mail 7.1 \(1827\)) X-Mailer: Apple Mail (2.1827) --Apple-Mail=_578C7F5B-4719-4541-9155-889777162182 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Yes! It has 2 keyframes - 0 and then100 with the decay expression: amp =3D .03; freq =3D 3.0; decay =3D 7; n =3D 0; if (numKeys > 0){ n =3D nearestKey(time).index; if (key(n).time > time){ n--; }} if (n =3D=3D 0){ t =3D 0; }else{ t =3D time - key(n).time; } if (n > 0){ v =3D velocityAtTime(key(n).time - thisComp.frameDuration/10); value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{value} On Feb 10, 2014, at 2:30 PM, Dan Ebberts wrote: > 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)? >=20 > Dan >=20 >=20 > -----Original Message----- From: Rachel Max > Sent: Monday, February 10, 2014 2:18 PM > To: After Effects Mail List > Subject: Re: [AE] scale expression >=20 > That=92s good Dan but the Layer B isn=92t decaying properly because it = needs to go below 100 for that. >=20 > I was thinking of making it time based but I=92d still be in the same = boat. >=20 > Thanks, > Rachel >=20 >=20 > On Feb 10, 2014, at 12:20 PM, Dan Ebberts = wrote: >=20 >> This should case layer B's scale to follow Layer A, only when A's = scale is larger than B's: >>=20 >> s =3D thisComp.layer("Layer A").transform.scale; >> [Math.max(s[0],value[0]),Math.max(s[1],value[1])] >>=20 >> Dan >>=20 >> -----Original Message----- From: Rachel Max >> Sent: Monday, February 10, 2014 12:01 PM >> To: After Effects Mail List >> Subject: [AE] scale expression >>=20 >> Happy Monday, >>=20 >> I have layer A that is scaling from 0 to 100 - and then has a nice = decay thanks to an expression from Dan. >>=20 >> I have layer B that I=92d 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. >>=20 >> What would you suggest dear kind list? >>=20 >> Thanks, >> Rachel >> +---End of message---+ >> To unsubscribe send any message to >>=20 >> +---End of message---+ >> To unsubscribe send any message to >=20 >=20 >=20 > +---End of message---+ > To unsubscribe send any message to =20 >=20 > +---End of message---+ > To unsubscribe send any message to --Apple-Mail=_578C7F5B-4719-4541-9155-889777162182 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Yes!

It has 2 keyframes - 0 and = then100 with the decay expression:

amp =3D .03;
freq =3D 3.0;
decay =3D = 7;
n =3D 0;
if (numKeys > 0){
n = =3D nearestKey(time).index;
if (key(n).time > = time){
n--;
}}
if (n =3D=3D 0){ t =3D = 0;
}else{
t =3D time - key(n).time;
}
if (n > 0){
v =3D = velocityAtTime(key(n).time - thisComp.frameDuration/10);
value + = v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{value}


On = Feb 10, 2014, at 2:30 PM, Dan Ebberts <debberts@comcast.net> = wrote:

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=92s = good Dan but the Layer B isn=92t decaying properly because it needs to = go below 100 for that.

I was thinking of making it time based but = I=92d 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 =3D thisComp.layer("Layer = A").transform.scale;
[Math.max(s[0],value[0]),Math.max(s[1],value[1])]<= br>
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=92d = 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>


= --Apple-Mail=_578C7F5B-4719-4541-9155-889777162182--