Copy link to clipboard
Copied
I'm an avid applescripter and I was disappointed to learn that Premiere Pro doesn't support applescript to the same extent many of the other Adobe products do. After digging around a lot, i finally found some mention of scripting Premiere Pro with ExtendScript. After several hours I've found mention after mention of the lack of documentation/support for this development. How frustrating! I've found the samples at github, and they do help, but what if what i want to do is not in there?!
Anyway, what I would like to do is export my Bins as new projects. I can't seem to find any documentation that illustrates how to do this. In the samples, I found app.project.activeSequence.exportAsProject(completeOutputPath); but that's for the activeSequence. Trying something like this... rootItem.children.exportAsProject(completeOutputPath); fails. I'm not even sure how to look up the answer to this question and it's ever so frustrating.
Any help would be greatly appreciated!
Copy link to clipboard
Copied
It appears as though I've found the answer, which appears to be that I can't use the function exportAsProject() with anything except a sequence. Which leads me to believe the only way to accomplish what i'm trying to do is to open and close the main project several times, deleting all the Bins I don't want and doing a "Save as" each time. Definitely not the most efficient use of time. If anyone knows of a better approach, i would really love to hear about it.
Copy link to clipboard
Copied
ThrowBackDewd wrote
After several hours I've found mention after mention of the lack of documentation/support for this development. How frustrating!
Let me channel Bruce Bullis a bit here:
"There are hundreds of panels in use today, developed with zero documentation, but it could certainly be easier."
That out of the way, let's take a look at the problem.
ThrowBackDewd wrote
Anyway, what I would like to do is export my Bins as new projects. I can't seem to find any documentation that illustrates how to do this.
I'm not aware of a Premiere Pro API that will do exactly what you want. If you would like to see an API to do that, start a thread describing your goal and label it as a Feature Request. (I personally like to name such threads with something like "[Feature Request] API to ...")
However, it may be possible for you to achieve what you want with a little extra work. I've not tried this myself, but the following may work for you:
The above would all, of course, be written in the ExtendScript context.
I hope this is helpful!
Copy link to clipboard
Copied
Nice impersonation, Eric.
what if what i want to do is not in there?!
Ask here.
David, you say you want to export bins; why bins? Are you trusting the user to have organized their project according to some set of rules? Or are you managing bin usage, from within your panel?
PProPanel shows how to export a sequence (with constituent media) into a new .prproj; would that get you most of what you want?
Walk me through the workflow(s) you'd like to support, from the user's perspective, and I can provide better guidance.