Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to Set Poster Frame to x

  • Script to Set Poster Frame to x

    Posted by Paul Roper on September 3, 2015 at 2:53 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

    Paul Roper replied 10 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 3, 2015 at 4:59 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

  • Paul Roper

    September 3, 2015 at 5:37 pm

    Thank you Dan – it worked perfectly!

    You are, as ever, The Man!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy