Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there an expression that can “output” a list of comma separated frame numbers?

  • Is there an expression that can “output” a list of comma separated frame numbers?

    Posted by Ryan Daily on April 18, 2013 at 9:07 pm

    We have a 3Ds/ C4D render farm here at work and sometimes a rogue computer or two will render a bunch of bad frames. On a long animation it can be hard to find all of the frames and get some numbers that can be put back into 3DS to re-render the bad frames. It doesn’t need to be fancy, I just need those values so that I can and paste them.

    So the idea is to go through the whole animation (manually) and drop a marker where there is a bad frame. Then an expression would generate a frame number and a comma for each marker.

    Any ideas?

    Thanks in advance!

    Ryan Daily replied 13 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 19, 2013 at 3:25 pm

    If you select the layer with the markers, open the script editor, paste in this script and run it, it should write the comma-separated frame numbers to the console window. You can copy and paste it from there.


    {
    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var s = "";
    for (var i = 1 ; i <= myLayer.property("Marker").numKeys; i++){
    if (i > 1) s += ",";
    t = myLayer.property("Marker").keyTime(i);
    s += Math.round(t/myComp.frameDuration);
    }
    }
    $.writeln(s);

    Dan

  • Ryan Daily

    April 19, 2013 at 4:52 pm

    You are awesome! Thank you for your help and your contributions to this community. =]

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