Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get source text from file name

  • Get source text from file name

    Posted by Motti Hen on December 2, 2013 at 9:23 am

    Hi you all,
    has written in the subject of this post, I want to ask if there’s any expression in after effetcs that gets the current file name and puts it in the source text of a text layer, without the file extension name.
    thanks.

    Evan Jenkins replied 6 years, 3 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 2, 2013 at 3:13 pm

    Do you mean the name of the project file? If so, then no, I can’t think of a way to do that.

    If you mean the name of the source file for the current layer, this could easily be modified to leave out the file extension:

    https://www.motionscript.com/design-guide/source-name.html

    Dan

  • Evan Jenkins

    May 6, 2020 at 6:39 pm

    Dan you are a creative genius, your code is amazing. I will be using this technique to get the file name and check for certain words that will trigger automation. I’ve learned a lot javascript in AE from your posts thanks for your good work.

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

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