GroupBrowser  




Go Back   GroupBrowser > Adobe Product Newsgroups > Adobe After Effects > Scripting & Rendering Automation
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

how to open a comp?
Old 07-16-2008, 02:19 PM #1
rich_helvey@adobeforums.com
Guest
 
Status:
Posts: n/a
Default how to open a comp?

Does anyone know of a way to force a comp to open its timeline and composition windows/panels?

So far, the closest thing I could find is an undocumented method for comps:
ramPreviewTest(), which forces the comp to open itself in order to do the preview.

But I have no idea what the 3 arguments are (the second seems to be a scale factor for the viewport), and all scripts sit and wait for the ram preview to finish, while the ram preview seems to sit and wait for the script to end before actually rendering any frames. I don't think this is my solution unless there's some magical argument value that makes it do what I want.

But I'm sooooooooo close. Please someone tell me there's a way to make the timeline and composition window open. Pretty please.

Thanks
-Rich
  Reply With Quote

Re: how to open a comp?
Old 10-13-2008, 05:05 PM #2
Lloyd_Alvarez@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: how to open a comp?

Hey Rich,

Unfortunately there is no way to do this currently. I believe the Project and Render Queue panels are the only ones you can have open through scripting.. Also beware that the ramPreviewTest() function is unsupported and in my testing is not very reliable.

-Lloyd
  Reply With Quote

Re: how to open a comp?
Old 10-14-2008, 12:04 PM #3
rich_helvey@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: how to open a comp?

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
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Microsoft Newsgroups 1 | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.