ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

filter/select ALL comps in Project window

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Marc Niborfilter/select ALL comps in Project window
by on Jan 17, 2016 at 10:33:41 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?



Return to posts index

Walter SoykaRe: filter/select ALL comps in Project window
by on Jan 19, 2016 at 11:12:27 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Marc NiborRe: filter/select ALL comps in Project window
by on Jan 19, 2016 at 6:34:32 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!



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]