Return-Path: Received: from nk11p08mm-asmtp001.mac.com ([17.158.58.246] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5372723 for AE-List@media-motion.tv; Tue, 11 Feb 2014 00:00:39 +0100 Received: from [192.168.0.240] (50-0-196-100.dedicated.static.sonic.net [50.0.196.100]) by nk11p08mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N0S000JIYSWK030@nk11p08mm-asmtp001.mac.com> for AE-List@media-motion.tv; Mon, 10 Feb 2014 23:05:21 +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-1401130000 definitions=main-1402100148 From: Rachel Max Content-type: multipart/alternative; boundary="Apple-Mail=_7598C7FA-72F8-4E3C-8F37-C2EA03F18B57" Message-id: <1822328C-EACF-44B5-BF8E-48E6EB8BFF0F@mac.com> MIME-version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: [AE] Fwd: [AE] scale expression Date: Mon, 10 Feb 2014 15:05:20 -0800 References: To: After Effects Mail List In-reply-to: X-Mailer: Apple Mail (2.1827) --Apple-Mail=_7598C7FA-72F8-4E3C-8F37-C2EA03F18B57 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 WHY YES, that=92s PERFECT! Thanks so much! - Rachel On Feb 10, 2014, at 2:47 PM, Dan Ebberts wrote: > Something like this then: > =20 > s =3D thisComp.layer("Layer A").transform.scale; > if (s.numKeys > 0){ > if (time > s.key(s.numKeys).time) s else value; > }else > value > =20 > Dan > =20 > From: Rachel Max > Sent: Monday, February 10, 2014 2:37 PM > To: After Effects Mail List > Subject: [AE] Fwd: [AE] scale expression > =20 > Yes! > =20 > It has 2 keyframes - 0 and then100 with the decay expression: > =20 > 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} > =20 > =20 > On Feb 10, 2014, at 2:30 PM, Dan Ebberts wrote: >=20 >> 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 >=20 > =20 > =20 --Apple-Mail=_7598C7FA-72F8-4E3C-8F37-C2EA03F18B57 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 WHY = YES, that=92s PERFECT!

Thanks so = much!

 - Rachel

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

Something like this then:
 
s =3D thisComp.layer("Layer A").transform.scale;
if (s.numKeys > 0){
  if (time > s.key(s.numKeys).time) s else value;
}else
  value
 
Dan
 
Sent: Monday, February 10, 2014 2:37 PM
Subject: [AE] Fwd: [AE] scale expression
 
Yes!=20
 
It has 2 keyframes - 0 and then100 with the decay expression:
 
amp =3D=20 .03;
freq =3D=20 3.0;
decay =3D=20 7;
n =3D=20 0;
if=20 (numKeys > 0){
n =3D=20 nearestKey(time).index;
if=20 (key(n).time > time){
n--;
}}
if (n =3D=3D=20 0){ t =3D 0;
}else{
t =3D time=20 - key(n).time;
}
if (n=20 > 0){
v =3D=20 velocityAtTime(key(n).time - thisComp.frameDuration/10);
value +=20 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=20 make sense for Layer B to follow Layer A after a particular keyframe = (like=20 last or next-to-last)?

Dan


-----Original = Message----- From:=20 Rachel Max
Sent: Monday, February 10, 2014 2:18 PM
To: After = Effects=20 Mail List
Subject: Re: [AE] scale expression

That=92s good = Dan but the=20 Layer B isn=92t decaying properly because it needs to go below 100 for=20= that.

I was thinking of making it time based but I=92d still be = in the=20 same boat.

Thanks,
Rachel


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

This should case layer B's scale  to = follow=20 Layer A, only when A's scale is larger than B's:

s =3D=20 thisComp.layer("Layer=20 = A").transform.scale;
[Math.max(s[0],value[0]),Math.max(s[1],value[1])]<= br>
Dan

-----Original=20 Message----- From: Rachel Max
Sent: Monday, February 10, 2014 = 12:01=20 PM
To: After Effects Mail List
Subject: [AE] scale=20 expression

Happy Monday,

I have layer A that is = scaling from 0=20 to 100  - and then has a nice decay thanks to an expression = from=20 Dan.

I have layer B that I=92d like to be synced up with = layer A (going=20 past 100 and then have the decay) - however layer be is already on = the=20 screen and I only want to the scale past 100 and then bak to 100 = with the=20 decay.

What would you suggest dear kind=20 list?

Thanks,
Rachel
+---End of message---+
To = unsubscribe=20 send any message to <ae-list-off@media-motion.tv>

+---End=20 of message---+
To unsubscribe send any message to <
ae-list-off@media-motion.tv>



+---End=20 of message---+
To unsubscribe send any message to <
ae-list-off@media-motion.tv>=20

+---End of message---+
To unsubscribe send any message to = <
ae-list-off@media-motion.tv>
 
 

= --Apple-Mail=_7598C7FA-72F8-4E3C-8F37-C2EA03F18B57--