Mailing List AE-List@media-motion.tv ? Message #50569
From: Darby Edelen <dedelen@gmail.com>
Subject: Re: [AE] animating a pulsing dot line
Date: Thu, 22 Aug 2013 15:56:55 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
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 <deanforss@gmail.com> 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!


 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster