Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

My script's UI is freezing during render time. Is there a fix for this?

New Here ,
Oct 04, 2016 Oct 04, 2016

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;

TOPICS
Scripting
538
Translate
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
Enthusiast ,
Oct 04, 2016 Oct 04, 2016

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.

Translate
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
Contributor ,
Oct 04, 2016 Oct 04, 2016

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?

Translate
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
New Here ,
Oct 04, 2016 Oct 04, 2016
LATEST

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)

Translate
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