FORUMS: list search recent posts

Script to Set Poster Frame to x

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Paul Roper
Script to Set Poster Frame to x
on Sep 3, 2015 at 2:53:38 pm

I have a lot of comps in my project, and it's useful to see the thumbnails in the Project panel. The first frame of most of my comps is completely blank, so the default poster frame is useless.

Does anyone know of a script that will set the Poster Frame Time to, say halfway through the comp duration? For example, if I have a 10sec comp, the script will set the poster frame time to 5sec. This should give me a reasonable idea of what each comp is, without having to open it. So it would be great to be able to select a load of comps, then run the script to adjust all the comps' poster frame times.

Thanks in advance for any suggestions,

- Paul


Return to posts index


Dan Ebberts
Re: Script to Set Poster Frame to x
on Sep 3, 2015 at 4:59:31 pm

This should work:


var comps = app.project.selection;
for (var i = 0; i < comps.length; i++){
if (comps[i] instanceof CompItem){
comps[i].openInViewer();
comps[i].time = comps[i].duration/2;
app.executeCommand(app.findMenuCommandId("Set Poster Time"));
}
}



Dan



Return to posts index

Paul Roper
Re: Script to Set Poster Frame to x
on Sep 3, 2015 at 5:37:43 pm

Thank you Dan - it worked perfectly!

You are, as ever, The Man!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]