Tracking render jobs upon completion

New Here ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

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);
}
TOPICS
Error or problem , Export or render , Feature request , How to , Tips and tricks

Views

57

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation