Skip to main content
Inspiring
Aug 3, 2024 6:21 AM UTC
Answered

Get project file path in after effects by scripting

Hi
Why "app.project.file" is working with after effects 2023 but not for 2024 as it gives me null to a saved project??
Thanks

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.
Airweb_AECorrect answer
Legend
Aug 3, 2024 6:43 AM UTC

Make sure your project is saved, otherwise, it return:

 

app.project.file.fsName
// TypeError: null is not an object

 

 

4 replies

Airweb_AECorrect answer
Legend
Aug 3, 2024 6:43 AM UTC

Make sure your project is saved, otherwise, it return:

 

app.project.file.fsName
// TypeError: null is not an object

 

 

Translate
Inspiring
Aug 3, 2024 6:46 AM UTC

i'm testing the same script on version 2023 and 2024 both of them has saved project is opened. script works for 2023 but not for 2024

Translate
Legend
Aug 3, 2024 7:03 AM UTC

Maybe you're using :

app.project.file

instead of:

app.project.file.fsName

 

Translate