Copy link to clipboard
Copied
Hi,
I am trying to app.project.renderQueue.render()
However, the err say :
After Effects error: render() may not be called while rendering is paused.
I just want to know to use render.
It's like button "render" on panel.
1 Correct answer
Hi SaesaemL,
Please inspect the following post: AE stops updating interface, shows spinning cursor when rendering via script
Does that assist your issue?
Thanks,
Kevin
1 Pinned Reply
Thanks for the question, Nathan. Welcome to the forum. I am Kevin, a moderator here. It sounds like you have a scripting question, which is outside my purview here in support. We'll have to await assistance from the community or from the team. Please check our scripting guide: https://adobe.ly/4iriuVG. That may help. I have heard that the app.scheduleTask() might be the code that could control a script's timing to run after the render is complete. As to running anything while rendering that woul
...Copy link to clipboard
Copied
Hi SaesaemL,
Please inspect the following post: AE stops updating interface, shows spinning cursor when rendering via script
Does that assist your issue?
Thanks,
Kevin
Copy link to clipboard
Copied
Hi,
I am also trying to use: app.project.renderQueue.render(); in After Effects 17.0.4
After that After Effects it stops working 😞
app.project.renderQueue.queueInAME(true); - this command working fine.
Please help.
Copy link to clipboard
Copied
What if we have more script to execute after rendering is finished (and don't want the UI to freeze while rendering)?
Copy link to clipboard
Copied
Thanks for the question, Nathan. Welcome to the forum. I am Kevin, a moderator here. It sounds like you have a scripting question, which is outside my purview here in support. We'll have to await assistance from the community or from the team. Please check our scripting guide: https://adobe.ly/4iriuVG. That may help. I have heard that the app.scheduleTask() might be the code that could control a script's timing to run after the render is complete. As to running anything while rendering that would not touch the UI, I suppose it's possible, but we'll have to wait for the experts to comment. I hope the community can assist you shortly. Take Care.
Thanks,
Kevin
Copy link to clipboard
Copied
Thanks for reaching out so quickly Kevin! I tried using app.scheduleTask() as you suggested, but it seems to have the same issue.
You can see the UI freeze issue just running this one line of code:
app.project.renderQueue.render();
The render progress bar that would usually be blue and green when manually pressing the "Render" button, stays gray when using this code to essentially run the same command. It does render the queue, it is just confusing for the user since it looks like the software is frozen.
The other forum post you linked above has a work-around to emulate the Enter key being pressed, but I'm afraid that might only work if I don't have any code to be executed after the rendering finishes.
Thanks again for looking into this!

