Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get project file path in after effects by scripting

Explorer ,
Aug 02, 2024 Aug 02, 2024

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

 

 

TOPICS
Scripting
732
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Aug 02, 2024 Aug 02, 2024

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

 

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

 

 

Translate
Advocate ,
Aug 02, 2024 Aug 02, 2024

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

 

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

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 02, 2024 Aug 02, 2024

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 03, 2024 Aug 03, 2024

Maybe you're using :

app.project.file

instead of:

app.project.file.fsName

 

screenshot_1.pngscreenshot_2.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 03, 2024 Aug 03, 2024
LATEST

Thank you so much; that helped me a lot.

with and without .fsName work, but it was my mistake. The project I opened in After Effects 2024 was originally created in After Effects 2023, so I noticed '(converted)' in the title bar. It hadn't been saved and had no file path, which caused the issue for me.

ae2024Converted.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines