Copy link to clipboard
Copied
Hi all, is it possible to export a frame of the sequence using the SDK, implementing what a used can do using the Export Frame command?
Thank you in advance.
Ale
Hello, Ale!
An ExtendScript script (.jsx file) or HTML5 panel (which calls ExtendScript) can do that. Please write me directly, and I'll get you a sample script (and panel) which do so.
b b b at adobe dot com
Reason for not just posting a sample script: There is a way of doing it, that would work, in 7.x. However, there is a much BETTER way of doing it in the version we <ahem> technology-previewed at NAB, which will be generally available, Really Soon Nowâ„¢. Unless you're very pressed for time, we r
...Copy link to clipboard
Copied
Hi Ale,
It should be possible using scripting. Bruce Bullis can share more details.
Copy link to clipboard
Copied
Hello, Ale!
An ExtendScript script (.jsx file) or HTML5 panel (which calls ExtendScript) can do that. Please write me directly, and I'll get you a sample script (and panel) which do so.
b b b at adobe dot com
Reason for not just posting a sample script: There is a way of doing it, that would work, in 7.x. However, there is a much BETTER way of doing it in the version we <ahem> technology-previewed at NAB, which will be generally available, Really Soon Nowâ„¢. Unless you're very pressed for time, we recommend you wait for the newer better way.
Copy link to clipboard
Copied
Hi Bruce, I would also very much like to know how to do that..
Thanks
Copy link to clipboard
Copied
If .png is okay, you can just use PProPanel's exportCurrentFrameAsPNG() function:
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L62
If you'd like more control, use encodeSequence(), as demonstrated in PProPanel's render() function; set the in and out points to the beginning and end of the frame you want, and use a still-related .epr file.
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L465
Copy link to clipboard
Copied
Thank you,
I've tried using exportCurrentFrameAsPNG function and it had no effect. the function inside, activeSequence.exportFramePNG returns false. it was on premiere 11.1.2
First I tried copying the function from the example, after that didn't work I downloaded and installed the whole PProPanel, and even there any function that uses exportFramePNG doesn't work, for example the button that exports frames from markers moves the playhead along each of the markers, but still nothing is exported.
Is it broken? Is there a replacement function?
Thanks
M
Copy link to clipboard
Copied
I've confirmed that PProPanel loads and runs, and exportCurrentFrameAsPNG() is working correctly. Check your ~/Desktop for .png files.
Perhaps you didn't have an active sequence, when you invoked it?
Copy link to clipboard
Copied
Hi, where and how do you define "presetPath" when exporting as png? It's not defined nowhere in PProPanel. At least I didn't find it.
Thanks!