4 Replies Latest reply on May 10, 2016 4:49 AM by jestructure

    Create Premiere project programmatically

    jestructure

      Hi,

       

      In order to better integrate my app with Adobe Premiere, I would like the ability to create a Premiere project and populate it with certain clips.

       

      Sony Vegas, for example, allows to pass by command line a script, which can do everything I need. However, I can't think of a way to do this with Premiere.

       

      I think I could have an empty project to copy it whenever I need, and then have the user load the required clips through a Panel action, but I would prefer to do it in one step.

       

      Is this possible at all?

       

      I don't think the "Importer API" is really related, but I'm checking it just in case.

       

      Best regards.

        • 1. Re: Create Premiere project programmatically
          Bruce Bullis Adobe Employee

          PPro's ExtendScript API (used by panels) allows for creating projects, importing media as well as AAFs and FCP XML for sequences.

           

          Several broadcasters use panels to provide managed workflows; the editor logs in, sees a work list, clicks a "New Episode of XYZShow" button, and gets a new project*, containing sequences with correct settings, as well as multiple open Media Browsers pointing to "Last Week's XYZShow" and "Station ID Graphics", and such.

           

          * The panel creates that new project by copying an existing .prproj, containing All The Right Stuff™ as detailed above, from a template project library on shared storage.

           

          See PProPanel to get an idea what's possible; here's how to set up a panel dev system.

          1 person found this helpful
          • 2. Re: Create Premiere project programmatically
            jestructure Level 1

            Thank you, that's great!

             

            Ideally I would like to create a project from an external application. Is there any way to run Premiere and make it automatically launch a Panel, or something like that?

             

            Best regards!

            • 3. Re: Create Premiere project programmatically
              Bruce Bullis Adobe Employee

              A panel can be automatically opened, at PPro launch.

               

              See this sample: CEP_HTML_Invisible_Extension

               

              I'd recommend starting from a library of pre-made .prproj files, choosing among them based on options the user chooses, in your panel.

              1 person found this helpful
              • 4. Re: Create Premiere project programmatically
                jestructure Level 1

                Thank you very much, Bruce.

                 

                I have downloaded the Invisible Extension panel, and it seems to work. I have replaced all the code from the onload event to just show an alert.

                 

                However, something unexpected happens. In the manifest, the Panel is set to start on the "com.adobe.csxs.events.ApplicationActivate" event, but it doesn't start until Premiere loses focus and gets it again, as if it wasn't getting an ApplicationActivate on launch.

                 

                So, in short:

                1) if I run Premiere and wait, nothing happens.

                2) If I minimize Premiere and restore it, the Panel runs.

                3) If I minimize Premiere and restore it once more, nothing happens.

                 

                Is this a bug or is there some workaround?

                 

                I'm running Windows 7, in case that matters.