Copy link to clipboard
Copied
Hi!
Is it possible to automatically skip this dialog when I open a project? Maybe an option in preferences or some way to close it programmatically via a script.
I'm opening premiere via a script for automation and this is blocking the continuation of the script.
PProPanel shows how to do that:
Also, it's not necessary to save a project, to close it; see project.closeDocument() documentation.
Hey Fernando,
I'm sorry, but I couldn't find an option like that. The best option would be to click "Skip All." Is this window obstructing your workflow? If you could share more details, maybe we can find an alternate solution.
Thanks,
Ishan
Copy link to clipboard
Copied
Hey Fernando,
I'm sorry, but I couldn't find an option like that. The best option would be to click "Skip All." Is this window obstructing your workflow? If you could share more details, maybe we can find an alternate solution.
Thanks,
Ishan
Copy link to clipboard
Copied
I'm basically running the following script in an automated manner:
var projectPath = new File('project.prproj');
if (projectPath.exists) {
app.openDocument(projectPath.fsName);
ExportProjectDirectly();
app.project.save();
}
app.quit();
function ExportProjectDirectly() {
var activeSequence = app.project.activeSequence;
if (activeSequence) {
var outputPath = 'output.mov';
var presetPath = 'preset.epr';
const result = activeSequence.exportAsMediaDirect(outputPath, presetPath, app.encoder.ENCODE_ENTIRE);
}
}
The issue is that any dialog that shows up blocks this script from continuing. For instance, I had to add the app.project.save() because otherwise the app would never quit and would be stuck in the confirm save dialog.
Copy link to clipboard
Copied
This interests me. Are you creating batches of videos with different inputs? I am curious about your use case and how you are using Premiere Pro. Content velocity is a keen interest of mine. That is, if you wouldn't mind sharing what you are trying to achieve.
Thanks,
Kevin
Copy link to clipboard
Copied
I can't say much but basically we have a workflow where we automate the generation of trailers by having individual clips being recorded and then applied to the master premiere project to be exported.
The idea is to keep iterating on the individual clips while being able to see the final output without needing additional work.
Copy link to clipboard
Copied
PProPanel shows how to do that:
Also, it's not necessary to save a project, to close it; see project.closeDocument() documentation.
Copy link to clipboard
Copied
That worked perfectly, thanks!