When the above happens, it overwrites time which is used later to set exportFramePNG. It's expecting to the original time prior to be changed.
Should be something like this:
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.
time_modified = time.replace(removeThese, '_');
var outputPath = new File("~/Desktop");
var outputFileName = outputPath.fsName + $._PPP_.getSep() + time_modified + '___' + activeSequence.name;
activeSequence.exportFramePNG(time, outputFileName);
} else {
$._PPP_.updateEventPanel("No active sequence.");
}
},
https://github.com/Adobe-CEP/Samples/blob/63f176a4903b9be9e6aa73133ae689a3904f78c8/PProPanel/jsx/PPRO/Premiere.jsx#L151
When the above happens, it overwrites time which is used later to set exportFramePNG. It's expecting to the original time prior to be changed.
Should be something like this: