Return-Path: Received: from mail-vc0-f170.google.com ([209.85.220.170] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5185433 for AE-List@media-motion.tv; Fri, 23 Aug 2013 00:44:43 +0200 Received: by mail-vc0-f170.google.com with SMTP id kw10so1494504vcb.1 for ; Thu, 22 Aug 2013 15:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ejPO60JI1Kye6P+ns6IyvbLHK3kklf/XNLC2/xQaabw=; b=RXVoHExVGNEzrv7yxyOcQM/w1CCxf2nrMq3S9vXv+naRboTEBk3AmOEFUYxbi/5OcL IDX6Y0D3guPYM2L48XbaHEt2cPfozS3kUHOZPCY50gfWill18QrN2GSqD7KYGQgmH+99 EmX6WaF7G4OZB0CbhMvVsBBKyiXo6G9b01CICZrJdrtvw5IY5EBpkyiN0Vo3IhbS8/o3 shTIpXsc0uhw+b+c1lzSpp2k7V7yTMy2BLKTbkwlsrUAd0o2fcyto5zuLGifyPur4O15 3zv5Sulhr6TYwLhpPKwE6qcEB0PTGdPt1pXzPnBF+wwQmWndrbFuRibA3+3LefKlY7Tg Vb5w== MIME-Version: 1.0 X-Received: by 10.58.137.167 with SMTP id qj7mr13321651veb.1.1377212215257; Thu, 22 Aug 2013 15:56:55 -0700 (PDT) Received: by 10.52.76.39 with HTTP; Thu, 22 Aug 2013 15:56:55 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Aug 2013 15:56:55 -0700 Message-ID: Subject: Re: [AE] animating a pulsing dot line From: Darby Edelen To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7b677efadef26104e491342e --047d7b677efadef26104e491342e Content-Type: text/plain; charset=ISO-8859-1 If the dot is animating with an expression already you'll just need to add a time offset to expression. So if your original expression was something like this: freq = 1; t = Math.cos(freq * time * 2 * Math.PI); linear(t, -1, 1, value, 0); Then you could add an offset of .1 seconds like this: *offset = .1;* freq = 1; t = Math.cos(freq * *(*time *- offset)* * 2 * Math.PI); linear(t, -1, 1, value, 0); Alternatively you could make this offset based on the inPoint of the layer: freq = 1; t = Math.cos(freq * (time - *inPoint*) * 2 * Math.PI); linear(t, -1, 1, value, 0); It would also be fairly simple to keyframe the animation and then use a combination of the loopIn() and loopOut() expressions: try{ t = key(1).time; if(time > t) loopOut(); else loopIn(); } catch(err){ value; } You could then offset the animation by sliding the keyframes around. More manual work on keyframes but also more flexibility in that you have explicit control over the speed of the animation. -Darby On Thu, Aug 22, 2013 at 8:12 AM, Dean Forss wrote: > Aloha, > > I am looking for an expression that might help me animate a line of dots. > I have the dot going from zero transparency to 100% and back on an > expression that works fine. I'd like to create a left to right series of > these dots animating on and off left to right. Is there an expression that > would help here you are aware of? > > Gracias, > > -- > *Dean Forss > Technology Consultant, 3D Artist, Interactive Designer > Direct 904.557.4189* > * > * > Life is a wondrous adventure; embrace it, leave yesterday behind, take > risks - not to escape today's life, but to prevent it from escaping you! > > --047d7b677efadef26104e491342e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
If the dot is animating with= an expression already you'll just need to add a time offset to express= ion.=A0 So if your original expression was something like this:

freq =3D 1;
t =3D Math.cos(freq * = time * 2 * Math.PI);
linear(t, -1, 1, value, 0);

Then you could add an offset of .1 seconds like this:

offset =3D .1;
freq =3D 1;<= br>
t =3D Math.cos(freq * (time= - offset) * 2 * Math.PI);
= linear(t, -1, 1, value, 0);

Alternatively you could make this offset based on the inPoi= nt of the layer:

freq =3D 1;t =3D Math.cos(freq * (time - inPoint) * 2 * Math.PI);
linear(t= , -1, 1, value, 0);

It would also be fairly simple to keyframe the animation an= d then use a combination of the loopIn() and loopOut() expressions:

=
try{
t =3D key(1).time;
if(time > t) loopO= ut();
else loopIn();
}
catch(err){
value;
}

You could then offset the animation by sliding th= e keyframes around.=A0 More manual work on keyframes but also more flexibil= ity in that you have explicit control over the speed of the animation.

-Darby


On Thu, Aug 22, 2013 at 8:12 AM, D= ean Forss <deanforss@gmail.com> wrote:
Aloha,

I am looking for an expression th= at might help me animate a line of dots. I have the dot going from zero tra= nsparency to 100% and back on an expression that works fine. I'd like t= o create a left to right series of these dots animating on and off left to = right. Is there an expression that would help here you are aware of?

Gracias,

--
Dean Forss
Technology Consultant, 3D Artist, Interac= tive Designer
Direct 904.557.4189=

Life is a wondrous adventure; embrace it, l= eave yesterday behind, take risks - not to escape today's life, but to = prevent it from escaping you!


--047d7b677efadef26104e491342e--