Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Darren Hardaway on May 7, 2009 at 3:12 am

    hey ppl…

    Is there any way to have after effects call natural exponential functions as well as logarithmic functions? I wanted to try to do a little thing with inverse functions and after effects, but I cant figure out how to write it. Any help would be great!

    Darren Hardaway replied 17 years ago 3 Members · 4 Replies
  • 4 Replies
  • Todd Kopriva

    May 7, 2009 at 4:32 am

    Look in the JavaScript Math part of the expression language menu. There are Math.log and Math.exp methods there.

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    putting the ‘T’ back in ‘RTFM’ : After Effects Help on the Web
    ———————————————————————————————————

  • Darren Hardaway

    May 7, 2009 at 6:06 am

    thanks, found it, but it didnt exactly work, probably because I’m trying to keep it too simple. Here was the idea:

    On anchorpoint of layer:

    X=(time*29.97)*2-99;
    [X,100*Math.log((1/50)*(X+100))]

    okay so I tried inverting this, and I think the invert is

    X=(time*29.97)*2-99;
    [X,Math.exp(.01*X)*50-100]

    According to a TI-84 its pretty close, only the x-values are totally funky. Is there any way to call thisComp.width to determine the x values? I think thats what I’m looking for.

  • Dan Ebberts

    May 7, 2009 at 1:19 pm

    What is it that you’re trying to do?

    Dan

  • Darren Hardaway

    May 13, 2009 at 4:21 am

    hello….

    I was trying to do something WAY redundant, basically I took about a half hour using a graphing calculator to find a path made with e^(x) that fit a 720×480 comp, then I found the inverse ln(x) function, then I stuck them in AE, and guess what? It didn’t work 😛 It’s okay tho, the path it made was easy enough to recreate by just warping the sin and cos(time) so it was really unneccessary to me, I was just experimenting. However, I was curious as to what logarithm and natural exponential functions can do for AE expressions, because I just got done with my intermed. algebra class and I’m wondering what else I can do with these cool little tools other than solve countinuous compound interest for money amounts I don’t have >_>

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy