Copy link to clipboard
Copied
I'm trying to execute exportAsMediaDirect() in a simple script and am getting the error "Error: Unknown Error" as a result, no matter which preset I use. If I try to export with the same presets directly in Premiere it works fine, so it doesn't seem to be a problem with the project itself (I even tried using a dummy project with a single video imported from the samples and got the same result).
I've tried using the same script found in the PPanel sample here and it also doesn't work. Am I doing something wrong? Running on Windows, Premiere Pro version is 25.1.0.
This is the script I've used:
var activeSequence = app.project.activeSequence;
if (activeSequence) {
var outputPath = "C:/Users/Fernando/Desktop/dummy-project/Output.mov";
var presetPath = "C:/Program Files (x86)/Common Files/Adobe/CEP/extensions/PProPanel/payloads/example.epr";
const result = activeSequence.exportAsMediaDirect(outputPath, presetPath, app.encoder.ENCODE_ENTIRE);
alert(result);
} else {
alert("No active sequence found.");
}
Have you tried with double backslashes, instead of forward slashes, in those paths?
[probably need escape'd spaces in the path(s), as well]
Copy link to clipboard
Copied
Have you tried with double backslashes, instead of forward slashes, in those paths?
[probably need escape'd spaces in the path(s), as well]
Copy link to clipboard
Copied
That was the issue, thanks!