Return-Path: Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4684162 for AE-List@media-motion.tv; Fri, 13 Apr 2012 01:55:27 +0200 Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id C7B33A72364 for ; Thu, 12 Apr 2012 19:56:12 -0400 (EDT) Received: (qmail 11839 invoked from network); 12 Apr 2012 23:56:12 -0000 Received: by simscan 1.4.0 ppid: 23689, pid: 7474, t: 0.2717s scanners: clamav: 0.88.2/m:52/d:13495 spam: 3.0.4 Received: from c-67-185-28-214.hsd1.wa.comcast.net (HELO [192.168.1.125]) (albion@[67.185.28.214]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 12 Apr 2012 23:56:11 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: [AE] expression - animating layer opacity on/off From: James Culbertson In-Reply-To: Date: Thu, 12 Apr 2012 16:56:07 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <12E0DB10-DF94-495A-AE7F-1915385027F1@speakeasy.net> References: To: "After Effects Mail List" X-Mailer: Apple Mail (2.1084) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail8.sea5 X-Spam-Level: X-Spam-Status: No, score=0.0 required=8.0 tests=none autolearn=disabled version=3.0.4 Perfect. Thanks Dan. James On Apr 12, 2012, at 11:51 AM, Dan Ebberts wrote: > You should be able to make this do what you want: >=20 > fadeTime =3D .2; > minDur =3D 1.5; > maxDur =3D 4; >=20 > seedRandom(index,true); > t0 =3D inPoint - random(maxDur); > t1 =3D t0 + random(minDur,maxDur); > while(t1 < time){ > t0 =3D t1; > t1 =3D t0 + random(minDur,maxDur); > } > t =3D Math.max(0, time - t0); > if (t < fadeTime) > ease(t,0,fadeTime,0,100) > else > ease(t,fadeTime,2*fadeTime,100,0); >=20 >=20 > Dan >=20 > -----Original Message----- From: James Culbertson > Sent: Thursday, April 12, 2012 11:03 AM > To: After Effects Mail List > Subject: [AE] expression - animating layer opacity on/off >=20 > I'm doing some traditional 2D animation using layers created by a = watercolorist. >=20 > I need to animate opacity for a mouth open layer on and off within a = constrained temporal randomness. >=20 > Expression variables: >=20 > Minimum and maximum duration between opacity transitions. >=20 > Length of transition between 0 and 100% opacity. >=20 > Thanks much, >=20 > James >=20 >=20 >=20 > +---End of message---+ > To unsubscribe send any message to =20 >=20 > +---End of message---+ > To unsubscribe send any message to >=20