Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions jsx script to clear the render queue?

  • jsx script to clear the render queue?

    Posted by Giuliana Bergamin on November 30, 2011 at 8:58 pm

    I’m using the following:

    app.project.renderQueue.item(1).remove()

    But this remove only the item 1 from the render queue, if there are more than 1 item in the render queue I can’t remove them from a script.

    I’ve tried something like:

    app.project.renderQueue.item().remove()

    But nothing, is there any expression like * to remove them all?

    If not, I guess the only way will be enumerate the items in the render queue and then remove 1 by 1.

    Ideas?

    Christian Reid replied 13 years ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 30, 2011 at 9:07 pm

    Try this:

    while (app.project.renderQueue.numItems > 0){
    app.project.renderQueue.item(app.project.renderQueue.numItems).remove();
    }

    Dan

  • Giuliana Bergamin

    November 30, 2011 at 9:30 pm

    It’s working! Thanks Dan, I’ve read some your scripting tutorial, great work!

  • Christian Reid

    May 7, 2013 at 6:22 pm

    Sorry about the question, I’m just trying to understand a real functionality here, not discussing how to do it.

    Cmnd-A and Delete doen’t fit the purpose to clean the Render Queue?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy