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 amHi 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 pmDo 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 pmDan 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
Log in to reply.