Return-Path: Received: from qmta07.emeryville.ca.mail.comcast.net ([76.96.30.64] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4683944 for ae-list@media-motion.tv; Thu, 12 Apr 2012 20:50:56 +0200 Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73]) by qmta07.emeryville.ca.mail.comcast.net with comcast id x4Xq1i0051afHeLA76rg0f; Thu, 12 Apr 2012 18:51:40 +0000 Received: from HPZ200 ([76.20.32.7]) by omta17.emeryville.ca.mail.comcast.net with comcast id x6rf1i00N09DSM08d6rg9F; Thu, 12 Apr 2012 18:51:40 +0000 Message-ID: From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] expression - animating layer opacity on/off Date: Thu, 12 Apr 2012 11:51:41 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 You should be able to make this do what you want: fadeTime = .2; minDur = 1.5; maxDur = 4; seedRandom(index,true); t0 = inPoint - random(maxDur); t1 = t0 + random(minDur,maxDur); while(t1 < time){ t0 = t1; t1 = t0 + random(minDur,maxDur); } t = Math.max(0, time - t0); if (t < fadeTime) ease(t,0,fadeTime,0,100) else ease(t,fadeTime,2*fadeTime,100,0); Dan -----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 I'm doing some traditional 2D animation using layers created by a watercolorist. I need to animate opacity for a mouth open layer on and off within a constrained temporal randomness. Expression variables: Minimum and maximum duration between opacity transitions. Length of transition between 0 and 100% opacity. Thanks much, James +---End of message---+ To unsubscribe send any message to