Skip to main content

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
June 6, 2019

I don't think you can without the popup dialog:

var impOpt = new ImportOptions(new File('path/to/my/file.prproj'));

app.project.importFile(impOpt)

See these resources for more details.

http://docs.aenhancers.com/other/importoptions/?highlight=import

http://docs.aenhancers.com/other/importoptions/?highlight=import

Tomas B. aka Tom10
Inspiring
June 7, 2019

Hey Justin, what if this would be done via app.execute instead? Or that way the dialog will break the import process anyways and will require manual input?

As far as I remember when working with Premiere imports - there can be two options. One with Dynamic Link (where it updates in between the changes), or importing of the project as compositions, where sequences relates to AE comps.

Justin Taylor-Hyper Brew
Community Expert
Community Expert
June 9, 2019

Hey Tom, from what I can tell both import and import as comps have the same result, the only difference is the import as comp puts the dynamic link into its own comp. In order for you to import as comp, you will have to do it manually or through app.executeCommandId(), but you could more easily import it regularly and then have a script put that dynamic link in a comp. Neither way is ideal unfortunately since you still need user input to the Dynamic Link UI to select your Premiere Project.