Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects filter/select ALL comps in Project window

  • filter/select ALL comps in Project window

    Posted by Marc Nibor on January 17, 2016 at 10:33 am

    I have not found a way yet to easily filter all comps in the project window.

    I’m sometimes using a script which requires to select/highlight all comps it should be applied to.

    When working with Projects that have over hundred comps, scattered around in sub sub sub folders it becomes tedious to get them all.
    … and one wrong click while control selecting and I need to start over.

    is there any way to filter out all available comps inside of the project window? or any other possibility to select all comps?

    Marc Nibor replied 10 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    January 19, 2016 at 11:12 am

    [Marc Nibor] “or any other possibility to select all comps?”

    Here’s a simple script to select all comps within a selection (if there are items selected in the project panel) or all comps within a project (if no items are selected in the project panel):

    // simple script to select all comps in a selection or project

    if (app.project.selection.length > 0) {
    var selection = app.project.selection;
    for (var i = 0; i < selection.length; i++) {
    if (selection[i] instanceof CompItem) selection[i].selected = true
    else selection[i].selected = false;
    }

    }
    else if (app.project.items.length > 0){
    for (var i = 1; i <= app.project.items.length; i++) {
    if (app.project.items[i] instanceof CompItem) app.project.items[i].selected = true
    else app.project.items[i].selected = false;
    }
    }

    Copy and paste this into a text editor and save as a .jsx file. Put it in your scripts folder and run it from within Ae.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Marc Nibor

    January 19, 2016 at 6:34 pm

    Walter, this works perfect! It’s exactly what I was hoping for and it’s a huge timesaver.

    Thank you so much for writing this!

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