Skip to main content
Bed30321077z973
Inspiring
February 7, 2024
Answered

Running ExtendScript on multiple projects at once - questions. (Multiple Active Sequences?) - Perfs?

  • February 7, 2024
  • 1 reply
  • 737 views

Hello,

I just tried opening multiple projects, and I noticed that the sequence of the new project would show up next to the sequences of the previous project:

 

Since clicking on the previous sequences, show up the previous project name, I assume that the previous is NOT closed after opening a new one.

 

I usually take the project inside a variable and then take the "active sequence". Would it be possible to obtain the "previous project" inside a varuable, while we are on the new project?

var proj = app.project;

=====> How do we ensure getting all open projects inside different variables? I think I have seen somewhere in the code something about projects, once, but I am not sure.

 

2) an "Active sequence" can that be "true" to previousely opened projects (not closed yet) even though the user is on sequence of the new project? In other words, can it be possible to have multiple active sequences at once (if each one is from different project open)?

 

3) If 1 and 2 are possible, then is it possible to run the extend script on multiple projects at once?

Or even run multiple extendscript scripts at once? (In visual I would need to be able to click the "run-> debug->ppro" multiple times for each script.)

 

4) PERFORMANCES:

Don't know if anyone in the world have tried it, maybe only the conceptor of PPRO can answer this, in the case multiple projects are "working" (compiling video, or in this instance receiving commands from extendscript), would PPRO DIVIDE its "ressources" to handle multiple projects at once ? (Like running one command inone project, then running one command on another project, and so on, until everything has run)

Or will PPRO use MORE ressources from the computer to be able to HANDLE every project EQUALLY, resulting in using more GPU, cpu, ram etc?

(As you might expect I want it to be the second answer, otherwise I am not interested in running multiple projects at once)

 

Thanks.

This topic has been closed for replies.
Correct answer Bruce Bullis

'app.projects' is an array of all open projects; 'app.project' is the current active project.

2. Across all open projects, there is only ever one active sequence.

3. Yes, the API can operate on any/all open projects.

4. PPro does not divide its resources across projects. 

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
February 7, 2024

'app.projects' is an array of all open projects; 'app.project' is the current active project.

2. Across all open projects, there is only ever one active sequence.

3. Yes, the API can operate on any/all open projects.

4. PPro does not divide its resources across projects. 

Bed30321077z973
Inspiring
February 7, 2024

Thanks for the answers!

I just tried it, and it .. slightly improved the time. Let me explain:

One single project, one EMPTY timeline, 600 items = 60~ seconds, as stated before. 0.103 sec/iter

Filling 2 empty timelines from 2 projects at once, 600 times in paralel (x2) => 115secs~, so that's better than 60x2=120, we only gained 5--7 seconds. In other words running project 1 then 2 would have 60 sec~ + 60 sec~long, so that's 120 sec (plus time to click and run), but running 2 at the same time was 115 seconds (a slight improvement).

 

All this with one single script though (it fills both timelines at once while running= items are filled in the timelines at the same time, its not one timeline finished then the other is dealt with, no, It's both).

So It does not seem PPRO asked more from my gpu (and cpu/ram) to handle the second timeline the same way it would have handled one single timeline (the consumption of gpu/ram etc did NOT DOUBLE),  instead .. Premiere got slowed. (right?)

 

The question is: do you think that running ANOTHER extendscript in paralell (which mean I would need to dwell into panels again to see how to activate 2 scripts at once instead of one, don't know how straightforward is that), so a script that would entirely focus on the other timeline (sequence) aka the other project, while letting the main script deal with the first project (2 scripts running at the same time then),  would make PPRO spend more gpu to deal with both timelines/sequences with the same "speed" as it would IF there was only one single sequence? (Aka both projects being filled within 60'sh seconds like It did when I was running it with one single project).

Bruce Bullis
Community Manager
Community Manager
February 7, 2024

>So It does not seem PPRO asked more from my gpu...instead .. Premiere got slowed. (right?)

 

No, PPro continued processing exactly as it normally would. Performing the same action on two different sequences still requires the time necessary to perform that action, on each sequence. 

Simultaneous execution of multiple scripts is impossible, within one instance of PPro. Even with multiple instances on the same system, the laws of physics still apply.