ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: sine/cosine interpolation hand-written

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Elad Menashe
Re: sine/cosine interpolation hand-written
on Mar 4, 2010 at 3:01:20 pm

I'm not sure I understand you correctly, there are to options, let me know what fits best your desire:
1) go from p1 to p2 in a ping-pong loop
2) go from p1 to p2 when reaching p2 go to p3, when reaching p(i) go to p(i+1)

if option 1 is the one: linY should be:
linY = p1[1] + t*(p2[1]-p1[1]);

if option 2 is the one you have several options
a. hardcode it, set times: t2, t3. when time < t2 interpolate from p1 to t2, etc.
b. use comp markers to define when to interpolate, this is also involve hardcoding the points, but you will be able to play with the times more easily.

Let me know if that helps
Elad


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]