Hehe, I figured I’d let you squirm a bit.
OK, so my solution goes back to my original idea of using ramPreviewTest.
Here’s the function I’m using:
function openCompPanel(thisComp)
{
// remember the original work area duration
var duration = thisComp.workAreaDuration;
// temporarily set the work area to 2 frames
// I know, I should use the comp fps to calculate it,
// but I only work in NTSC 30 fps.
// Anything less than 2 frames makes AE barf
thisComp.workAreaDuration = 0.06;
// make a 2 frame ram preview which forces the comp window to open
// I don’t know the first and last arguments, and they may not want
// strings, but this works for me. The second argument is a scaling
// factor for the viewport. Use 0.5 for 50%, etc.
thisComp.ramPreviewTest(“”,1,””);
// Play nice and put things back the way they were
thisComp.workAreaDuration = duration;
}
It sure would be nice to have a much simpler way of doing this, though.
-Rich