ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

PI number animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anthony Tonev
PI number animation
on Mar 16, 2018 at 1:52:04 am
Last Edited By Anthony Tonev on Mar 16, 2018 at 1:59:00 am

Can someone re-create this in AE?

If you unroll a circle 360 degrees you should end to 3.14 times its size. I'm not good at math but I thought I could make this with a simple expression in AE. The result was not the same... Now I feel even more dumb.

For some reason I'm 1 integer off it seems. I get 2.14 or even 2.30 (not sure) if I position the circle at line 0 (like in the example gif). If I start from 1 instead of 0, then I think I might get 3.14 but that is not the right answer - it's right if it starts from 0.

Does someone know hot to make it work?

Here are 3 stills from my result:

Return to posts index

Dan Ebberts
Re: PI number animation
on Mar 16, 2018 at 6:30:57 am

I'm not sure how you have things set up, but this position expression seems to work for a 100x100 solid:

x = width*(rotation/360)*Math.PI;
value + [x,0]


Return to posts index

Anthony Tonev
Re: PI number animation
on Mar 16, 2018 at 9:47:51 am

Thanks Dan - works great! I got it now.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved