Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Get source text from file name

  • Get source text from file name

  • Motti Hen

    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.

  • 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

Viewing 1 - 3 of 3 posts

Log in to reply.

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