Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to reload an external Javascript file.

  • How to reload an external Javascript file.

    Posted by Ryan Mcadam on October 11, 2016 at 6:33 pm

    Hey all,

    I’m referencing an external .jsx file from my existing .jsx file using #include. It works fine but when I want to update the code in the external .jsx the changes done seem to carry over when I execute a function from that file in my existing .jsx file. Is there a way to re-load the external .jsx file each time the existing .jsx file is run?

    Thank,
    Ryan

    Ryan Mcadam replied 9 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 11, 2016 at 6:44 pm

    Use $.evalFile() instead of # include maybe?

    Dan

  • Ryan Mcadam

    October 12, 2016 at 6:03 am

    I will give that a try. Thanks, Dan.

    I don’t suppose you know how to convert the position of a mask vertice on one layer to match the position of a shape vertice on another layer. Shape vertices seem to be position relative to the center of the shape (not layer) and mask vertices seem to be position relative to the upper left-hand corner of the layer (content not the layer itself). I can’t figure out how to get the vertice positions of one shape (mask) to match the vertices position of the other layer shape. I’d like to be able to do this in extendscript and not an expression.

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