🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: renderQueueItem.duplicate() ... still done?

#111
From: Dan_Ebberts
Date: Sun, 11 Feb 2007 01:13
35 lines
1641 bytes
Hmmm.... that's not too useful. You might have to do it the hard way. Something like this:





 
var lastIndex = app.project.renderQueue.numItems;  
if(lastIndex > 0)  
{ 
  var renderQueueItem = app.project.renderQueue.item(lastIndex);   
  var myRQItem = app.project.renderQueue.items.add(renderQueueItem.comp); 
  myRQItem.applyTemplate(renderQueueItem.templates[0]); 
  var OM = renderQueueItem.outputModule(1); 
  var myOM = myRQItem.outputModule(1); 
  myOM.file = OM.file; 
  myOM.postRenderAction = OM.postRenderAction; 
  myOM.applyTemplate(OM.name); 
  myRQItem.timeSpanStart = renderQueueItem.timeSpanStart; 
  myRQItem.timeSpanDuration = renderQueueItem.timeSpanDuration; 
  app.project.renderQueue.render(); 
}  
else  
{  
    alert("No items in Render Queue");  
}  






I think it will render on top of any files with the same name without complaining.

Dan
Technical Details
Message-ID: <3bc31edd.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!news.isoc.lu!webcrossing
References: <3bc31edd.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,9adcccb314758db2
X-Google-Attributes: gid1efebe,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dan_Ebberts@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.after.effects.scripting.render
Subject: Re: renderQueueItem.duplicate() ... still done?
Message-ID: <3bc31edd.0@webcrossing.la2eafNXanI>
Date: Sat, 10 Feb 2007 17:13:57 -0800
References: <3bc31edd.-1@webcrossing.la2eafNXanI>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit