FORUMS: list search recent posts

Animating Expressions?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jon Smith
Animating Expressions?
on Jan 19, 2011 at 7:23:06 pm

I'm trying to figure out how to specify positions at specific times. For example: I have 2 positions that I want an object to travel between. So it starts at position A then travels to position B in 2 secs.

This is just an example of what I'm trying to do. The Timing and positions will constantly change so I want to use an expression to define them.

Thanks
-jon



Return to posts index

Dan Ebberts
Re: Animating Expressions?
on Jan 19, 2011 at 8:02:45 pm

Like this maybe:

pos1 = [100,100];
pos2 = [200,200];
time1 = 1;
time2 = 3;
linear(time,time1,time2,pos1,pos2)


Dan



Return to posts index

Jon Smith
Re: Animating Expressions?
on Jan 22, 2011 at 2:27:17 pm

Thanks you sir, That works beautifully.

A second part to that: Is there a way to tell a parameter to be a certain value at one time and another value at another time?

Basically similar to setting hold keyframes.

so at
0 sec = 100
1 sec = 200

but without the linear change?
I tryed to use AE expression reference library but it's so hard to find what I'm looking for.

Thanks again.



Return to posts index


Jon Smith
Re: Animating Expressions?
on Jan 22, 2011 at 3:02:58 pm

I finally figured it out with a if/else stament. Thanks for the help Dan.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]