Copy link to clipboard
Copied
Hello,
I recently wrote a script that renders multiple parts of my composition based on markers I placed there. Since these renders can take up more than just a couple of minutes, I built a progress bar to display ... the progress. Basically, I know the total time of how much I'm rendering, and every time the current job is done, I add to a counter how long the video I just rendered was, and divide this counter by the total time. Then, I multiply by 100 and update the progress bar.
So, what happens: my script adds the first job, starts rendering it, and after a couple of seconds freezes. It does its job well in the background, but I can't see the progress, I can see it only when it has finished.
This is the code for this specific part.
for (i=0;i<tm;i++) {
myComp.workAreaStart = movIn; myComp.workAreaDuration = movOut-movIn;
var RQitem = myQueue.items.add(myComp);
var OMitem = RQitem.outputModules[1];
var finLoc = myPal.grp.renderGrp.locationGrp.renLoc.text+movName+".mov";
OMitem.file = new File(finLoc);
myQueue.render();
timeDone+= (movOut-movIn);
prDone = timeDone*100/totalTime;
myPal.grp.renderGrp.rndButGrp.renProg.value = prDone;
}
alert("Render Complete!", scriptName);
myPal.grp.renderGrp.rndButGrp.renProg.value = 0;
Copy link to clipboard
Copied
I'll guess that you are trying to launch the script in AE CC15.
Well, if so,
myQueue.render();
doesn't work correctly in CC15, so the only work around here is to launch render manually by pressing "Render" button.
Copy link to clipboard
Copied
I wasn't aware that render() wasn't working correctly in CC15. I just wrote a script that uses it (so far) without problems. What problems have people been encountering?
Copy link to clipboard
Copied
render() works for me as well in CC15, the only thing is that AE is not responsive until the render finishes. Does anyone know any workaround (make AE responsive again during that period)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now