Page 1 of 1

Select multiple layers from timeline

Posted: June 11th, 2013, 10:17 am
by Jeff P
Looking for a script which selects all the layers with in points to the right of the current time line??

Any help would be greatly appreciated!

Thanks

Jeff

Re: Select multiple layers from timeline

Posted: June 11th, 2013, 10:19 pm
by Dan Ebberts
Something like this:

Code: Select all

var myComp = app.project.activeItem;
for (var i = 1; i <= myComp.numLayers; i++){
  myComp.layer(i).selected = myComp.layer(i).inPoint > myComp.time;
}

Dan

Re: Select multiple layers from timeline

Posted: June 12th, 2013, 5:49 pm
by Jeff P
Thank you Dan,

Works great!

I appreciate your taking the time to write this out

Thanks again for the script!!

Jeff