Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How can I create a file select (browse) button for After Effects UI scripts?

New Here ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

Hello everyone. Tell me how I can implement a button to open the browser and select a file. And then write a link to that file in a variable. Or can this be done with a plugin?

 

 

TOPICS
Scripting

Views

47

Likes

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

New Here , Aug 29, 2021 Aug 29, 2021
i solved the problem.For open dialog browser for choose fileFile().openDlg;for open dialog browser for choose folderFolder().selectDlg;

Likes

Translate

Translate
New Here ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

i solved the problem.

For open dialog browser for choose file

File().openDlg;

for open dialog browser for choose folder

Folder().selectDlg;

 

Likes

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
Adobe Community Professional ,
Aug 30, 2021 Aug 30, 2021

Copy link to clipboard

Copied

LATEST

Usually, you should use File().openDlg only if you want to preselect a particular file by default and use

File.openDialog( [prompt, filter, multiSelect] )

otherwise:

 

new File("~/Desktop/test.mp4").openDlg("Please choose a video file"); // this preselects test.mp4 on my desktop

File.openDialog("Please choose a video file"); // this opens the default location and preselects no file

 

(note the difference between Dialog and Dlg)

Likes

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