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

scripting: get proxy folder path

Explorer ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

Hello, I wrote a simple script to get the path of the proxy folder selected in the project panel.

 

fileTrg = app.project.selection[0].file;
folderObj = new Folder(fileTrg);
alert(folderObj.fsName)

 

However, this alert returns my AfterEffects system folder. like this

C:\Program Files\Adobe\Adobe After Effects 2021\Support Files\tmp0000001

 

How to get correct proxy folder path? Thank you.

TOPICS
Expressions , FAQ , Scripting

Views

334

Translate

Translate

Report

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

Community Expert , Jan 09, 2023 Jan 09, 2023

Not sure what you are trying to achieve.

If you have a project item selected and want the file object of the proxy instead of the original item, that should be

app.project.selection[0].proxySource.file;

according to the documentation linked by Mylenium

Votes

Translate

Translate
LEGEND ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

This will never work. Refer to the scripting guide for proper procedures:

 

https://ae-scripting.docsforadobe.dev/items/avitem.html#avitem-proxysource

 

Mylenium

Votes

Translate

Translate

Report

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 ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

Thank you! That's unfortunate...

Votes

Translate

Translate

Report

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
Community Expert ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

Not sure what you are trying to achieve.

If you have a project item selected and want the file object of the proxy instead of the original item, that should be

app.project.selection[0].proxySource.file;

according to the documentation linked by Mylenium

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

Translate

Translate

Report

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 ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

LATEST

Thank you! It's worked!!

Votes

Translate

Translate

Report

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