Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Referencing function in an external file

  • Referencing function in an external file

    Posted by Mark Chadwick on March 19, 2015 at 9:44 pm

    I’m a new user of After Effects. I created an expression calling a function in its own file so I could easily reuse it. I want to store the script relative to the project. I used the following expression to call the function.

    This approach generally works, but the directory seems to be referenced from wherever AE is invoked.
    Is there a more conventional way to perform this?
    If this is the right approach, is there a way to set a path reference relative to the project directory?

    $.evalFile("./scripts/overshoot.jsx");
    thisProperty.value = overshoot(thisProperty, 5, 12);

    Dan Ebberts
    replied 11 years, 6 months ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 19, 2015 at 11:56 pm

    As far as I know, expressions don’t have access to the path info you want. Scripting does, and a script could leave bread crumbs behind for the expression to use, but you’d have to run the script when you load the project.

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