Skip to main content
Alexander from MisterHorse.com
Participant
April 6, 2022

Extension engine bug: app.project.importFiles doesn't work as supposed to in Beta

  • April 6, 2022
  • 2 replies
  • 646 views

Hello, 

 

1. Version of tha app: Premiere Pro 22.4.0.30 (probably it started happening in a few previous builds too)

2. Tested on Mac mini (M1, 2020). OS version 12.2.1 (Monterey)

3. We've encountered a bug that might break a lot of extensions when using "app.project.importFiles" api call. I am attaching a video, sample projects and a script example. Calling this API to import a .prproj results in error. 

 

The gist of the call is:

var path = '/Users/USERNAME/folder/toImport.prproj';

if (path){
    app.project.importFiles(
        [path],
        true, // suppressUI
        app.project.rootItem,
        false // importAsStills
    );
}

 

The root issue seems to be the "suppressUI" parameter which defaulted to "import everything" before.

 

Thank you for looking into this :-).

 

    2 replies

    DaciaSaenz
    Inspiring
    April 18, 2022

    Thanks for reporting this, Alexander! 

     

    I've put you in touch with our API wizard and hope to have some good news on a fix soon. 

     

    Thanks,

    Dacia

    - Dacia Saenz, AE & PR Engineering Teams
    Bruce Bullis
    Community Manager
    Community Manager
    April 18, 2022

    Annoying! 

    We're tracking this as DVAPR-4237770, "app.project.importFiles() FAILS for .prproj files, in 22.4; works fine in 22.3".