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

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

Community Beginner ,
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

324

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 Beginner , Aug 29, 2021 Aug 29, 2021

i solved the problem.

For open dialog browser for choose file

File().openDlg;

for open dialog browser for choose folder

Folder().selectDlg;

 

Votes

Translate

Translate
Community Beginner ,
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;

 

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 ,
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)

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