Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to create a file upload dialog using ExtendScipt and a UI Script

  • How to create a file upload dialog using ExtendScipt and a UI Script

    Posted by Sébastien Lavoie on February 18, 2013 at 2:36 am

    I am creating a script with a custom UI and I want the user to be able to select a text file so the script can parse it. I have been searching in the documentation and haven’t find any way to do it. Is there like a panel.add('fileUpload', [...]); or something?

    Thanks,

    Sébastien Lavoie

    Sébastien Lavoie replied 13 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 18, 2013 at 4:02 am

    You could create a button and set its onClick to a function that uses File.openDialog() to let the user navigate to the file. Then you need to read the file. Everything you need to do all this is in the JavaScript Tools guide.

    Dan

  • Sébastien Lavoie

    February 18, 2013 at 4:10 am

    Thanks a lot, didn’t of this way of doing it!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy