Activity › Forums › Adobe After Effects Expressions › Animating between two positions with start and end time
-
Animating between two positions with start and end time
Posted by Ronny Traufeller on February 19, 2024 at 2:16 pmHi there,
is that possible?
Ronny Traufeller replied 2 years, 2 months ago 3 Members · 4 Replies -
4 Replies
-
Brie Clayton
February 19, 2024 at 2:18 pmHello Ronny!
Can you give us an example of what you are attempting to do in this situation?
-
Ronny Traufeller
February 19, 2024 at 3:33 pmsure, in this specific case i want to animate the position of a layer.
(2 dimensional value)
A = 0,0
B = 500,200
C = 1000, 1000
(example)
0 to 2 seconds
from A to B
4 to 6 seconds
from B to C
-
Dan Ebberts
February 19, 2024 at 4:11 pmThere are a number of ways to set it up. This would probably be the most straightforward, brute-force method for the task as you’ve described it:
A = [0,0];
B = [500,200];
C = [1000,1000];
t1 = 0;
t2 = 2;
t3 = 4;
t4 = 6;
if (time < t3)
linear(time,t1,t2,A,B)
else
linear(time,t3,t4,B,C) -
Ronny Traufeller
February 20, 2024 at 8:14 amhey Dan it seems like its working! thank
i will put it to test now.
all the best,
Ronny
Reply to this Discussion! Login or Sign Up