Copy link to clipboard
Copied
I'm using the PPROPanel Extesion, Ihave an active sequence, then I'm selecting some frame(playing with the time line selection) and then click on 'Export sequence frame'.
I can see the new image file, but every image is the same - the first frame of the sequence regardless the sequence player position.
The same result received by clicking 'Export frames for markers' - all markers has the same image (the first frame of the sequence).
What amo I doing wrong?
thanks.
> What am I doing wrong?
Trusting my example code. 🙂
In order to create the output path, the sample code changes the timecode string; this means PPro can't understand it when exportFramePNG() is called, so PPro falls back to time 0.
The snippet below works correctly; I'll check it in soon.
exportCurrentFrameAsPNG : function () {
app.enableQE();
var activeSequence = qe.project.getActiveSequence(); // note: make sure a sequence is active in PPro UI
if (activeSequence) {
// Create a fil
...
Copy link to clipboard
Copied
> What am I doing wrong?
Trusting my example code. 🙂
In order to create the output path, the sample code changes the timecode string; this means PPro can't understand it when exportFramePNG() is called, so PPro falls back to time 0.
The snippet below works correctly; I'll check it in soon.
exportCurrentFrameAsPNG : function () {
app.enableQE();
var activeSequence = qe.project.getActiveSequence(); // note: make sure a sequence is active in PPro UI
if (activeSequence) {
// Create a file name, based on timecode of frame.
var time = activeSequence.CTI.timecode; // CTI = Current Time Indicator.
var removeThese = /:|;/ig; // Why? Because Windows chokes on colons in file names.
var tidyTime = time.replace(removeThese, '_');
var outputPath = new File("~/Desktop");
var outputFileName = outputPath.fsName + $._PPP_.getSep() + tidyTime + '___' + activeSequence.name;
activeSequence.exportFramePNG(time, outputFileName);
} else {
$._PPP_.updateEventPanel("No active sequence.");
}
},
Copy link to clipboard
Copied
Thanks, works like a charm!