🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.after.effects.scripting.render
Article #110

renderQueueItem.duplicate() ... still done?

#110
From: david_van_brink
Date: Sun, 11 Feb 2007 00:28
28 lines
1432 bytes
I'm trying to write a script called "rerenderLastItem", which will duplicate the last item of the Render Queue and start rendering.



 
var lastIndex = app.project.renderQueue.numItems; 
var renderQueueItem = null; 
if(lastIndex > 0) 
{ 
    renderQueueItem = app.project.renderQueue.item(lastIndex).duplicate(); 
    //app.project.renderQueue.render();  // skip for now... 
} 
else 
{ 
    alert("No items in Render Queue"); 
}





The problem is that the new item in the queue is marked "Done".

I tried renderQueueItem.status = RQItemStatus.QUEUED; but sure enough, it is read-only just like the documentation claims.

Help, help. Thanks!

(And once I get past that, is there a way to script, "Do the render, and Yes to overwrite any existing render files please." ? )
Technical Details
Message-ID: <3bc31edd.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,9adcccb314758db2,start
X-Google-Attributes: gid1efebe,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: david_van_brink@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.after.effects.scripting.render
Subject: renderQueueItem.duplicate() ... still done?
Message-ID: <3bc31edd.-1@webcrossing.la2eafNXanI>
Date: Sat, 10 Feb 2007 16:28:49 -0800
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit