Skip to main content
New Participant
August 27, 2020
Question

Tracking render jobs upon completion

  • August 27, 2020
  • 0 replies
  • 284 views

Hello everyone, i'm trying to create a button on a premiere panel that would check if all the current jobs that were queued to be renderd in Adobe Media Encoder have finished. Then it would return either True or False back to the panel. I've been digging around but all I can find is "app.encoder.bind('onEncoderJobComplete', callback);" which will notify when each job is finished but not when ALL jobs are done it also can't return back to evalscript() either. 

 

I am developing on Mac as well.

 

Any help would be greatly appreciated!!

Thanks

 

This is my thought process so far:

main.js:

let csInterface = new CSInterface();

let dev_button = document.getElementById('testButton');
dev_button.addEventListener('click', testDevFunction);
function testDevFunction(){
csInterface.evalScript('checkEncoderRunning()', function(response){
alert("" + response);
});
}
 
extendscript.jsx:
function checkEncoderRunning(){
// Checks Adobe Media encoder if there are any jobs still on the render queue (preferabbly if the last job has finished)
 
// return true or false if jobs have finished
}
 
// Snippet of how im using the encoder to render a clip
function renderItems(){
app.encoder.launchEncoder();
var jobID = app.encoder.encodeSequence(app.project.activeSequence, fullPathToFile, outPreset.fsName, app.encoder.ENCODE_WORKAREA, 1);
}
This topic has been closed for replies.