Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Select all guide layers from active comp without selecting the layers in AE scripting

  • Select all guide layers from active comp without selecting the layers in AE scripting

    Posted by Luqman Ameer on February 16, 2020 at 4:34 am

    Hi, i have an active comp "compname" and have more than 130 layer of different types 'guide, 3d, label red' how can i select it from all layers only guide or 3d or label red.
    Please tell me each type separately

    Thanks.

    Luqman Ameer replied 6 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 16, 2020 at 3:30 pm

    This should work:


    var myComp = app.project.activeItem;
    for (var i = 1; i <= myComp.numLayers; i++){
    myComp.layer(i).selected = (myComp.layer(i).threeDLayer || myComp.layer(i).guideLayer || myComp.layer(i).label == 1);
    }

    Dan

  • Luqman Ameer

    February 17, 2020 at 4:51 am

    Thanks it works perfectly what i need.
    The platform creativecow is amazing.

    I have some other issue, i want to move timeline indicator to 150 frames forward from current time, how can i trigger this via script.
    Thanks.

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