Forum Replies Created

Page 2 of 2
  • Danyl Bernard

    July 5, 2020 at 11:57 pm in reply to: Creating comps from folders

    I’m essentially trying to add something like this to all of the comps which will trim them all to the “longest” layer

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    myComp.duration = myLayer.outPoint;

  • Danyl Bernard

    July 5, 2020 at 8:54 pm in reply to: Creating comps from folders

    It works great, one small issue. Now the comp is the length of the originally imported layers, not the newly moved ones.

    Is there a way to trim the comp to the length of the last (top) layer?

    Thank you

  • Danyl Bernard

    July 5, 2020 at 7:20 pm in reply to: Creating comps from folders

    Wow, it works fantastic. Thank you!

    I’m trying to work through the code here, It seems like the last two lines are where the layers get sequenced.
    Earlier, I was working with an expression that would sequence the layers minus thirty frames from the last one, kind of like this is there a way to do that via scripting as well?

    Also, how can I make the sequencing start from the second layer? The first layer is an audio track that I don’t want sequenced. I tried creating a new loop and changing the index number, but then it only imports one layer

    Thank you!

  • Danyl Bernard

    June 29, 2020 at 7:00 am in reply to: Adding folder items to a comp

    Hey, I’m about a half a decade late to the party.

    Can someone please explain Dan’s solution? I’m trying to create a script where a folder is selected in the project panel, and all of its contents are added to a main composition in the project. how would I go about doing that?

Page 2 of 2

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