Article View: adobe.after.effects.scripting.render
Article #157Re: how to open a comp?
From: rich_helvey
Date: Tue, 14 Oct 2008 16:04
Date: Tue, 14 Oct 2008 16:04
20 lines
1443 bytes
1443 bytes
function openCompWindow(compToOpen){
var origWorkArea = CompToOpen.workAreaDuration;
//
compToOpen.workAreaDuration = 0.1;
// I should really change the line above to this:
// compToOpen.workAreaDuration = 3 * compToOpen.frameDuration;
// but I'm too lazy.
// You need to multiply by 3 since a ram preview needs at least 2
// frames, and I use 3 just as a buffer to ensure you don't
// need to worry about any weird rounding off errors.
//
compToOpen.ramPreviewTest("",1,"");
compToOpen.workAreaDuration = origWorkArea;
}
This has been working for us for a good number of months of heavy daily usage. Yes, it's a hack, but man is it nice.
I sure hope Adobe doesn't munch this command in cs4. Unless it's to give us a REAL way to open the comp window.
-Rich
Technical Details
Message-ID:
<59b5dd07.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.buerger.net!news4us.nl!webcrossingReferences:
<59b5dd07.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,671784b9ee6913c6 X-Google-Attributes: gid1efebe,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: rich_helvey@adobeforums.com Newsgroups: adobe.after.effects.scripting.render Subject: Re: how to open a comp? Message-ID: <59b5dd07.1@webcrossing.la2eafNXanI> Date: Tue, 14 Oct 2008 09:04:03 -0700 References: <59b5dd07.-1@webcrossing.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.buerger.net!news4us.nl!webcrossing