Page 1 of 1
collect files (comp only)
Posted: September 22nd, 2006, 12:01 pm
by Varangian
Ok, here is a tough one, but a good one I think:
Problem: I often need to import only one or two comps (and associated images and precomps) from rather complicated AE projects. I like to work organized and simply so I do want import the WHOLE project, into the new comp, only the stuff I need.
Solution: A script that runs like this: Select a comp in a project, run the script and all the associated precomps, solids and images/footage are collected to a new folder. Kind of like what Media Manager does in Final Cut.
I think this one would be VERY useful. anyone agree?
Posted: September 22nd, 2006, 12:03 pm
by Varangian
oh, wow, I didn't even look, someone just requested this a few posts down!
Well, maybe my post will help describe this further.
Posted: September 22nd, 2006, 8:46 pm
by nab
hehe I had mostly the same idea few months ago but was too busy (or too lazy

) at that time to code it.
Here is my first attempt (this script requires AE7.0):
http://www.nabscripts.com/Forum/Scripts ... ements.jsx
I've added couple of options, also explained in the ? alert button:
1. (in the new main folder) collect all used items into 3 differents subfolders namely "Precomps","Solids" and "Sources" depending on their types.
2. remove all unused footages and empty folders (empty folders may occur if you run the script several times in the same project).
This script should work fine but if you detect some strange behavior or would suggest some addition/modification, please let me know

Posted: September 25th, 2006, 3:53 pm
by Varangian
Hi Nab. Seems the script does collect the files and create the new folders but it is not clearing out all the other unselected comps and related elements.
So I get a project, as it was before I run the script, but with the added folders w/ collected elements. Nothing is removed from the project.
(btw thanks a million for taking this on!)
Posted: September 25th, 2006, 9:54 pm
by nab
hello Varangian,
the updated version should do what you expect (same link).
If the "remove unused" option is checked, all unused footages in the imported project will be deleted (the selected comp and its related elements -collected into a new folder- will be moved to the root folder).
Posted: September 26th, 2006, 12:59 pm
by Varangian
hi Nab. looks like the new script is moving the files related to the selected comp to new folders that the script creates, but other comps and files are not removed (even with this option checked off)
I am on a Windows PC running AE 7
Posted: September 26th, 2006, 9:28 pm
by nab
hum...strange.
I've made many tests and unused comps and files are removed from the project when I choose the option.
Could you send me a sample aep or post a screenshot of your project panel showing the problem you encounter.
BTW, thanks to Lloyd Alvarez for his help concerning palette's button appearence (Mac).
Posted: September 27th, 2006, 11:58 am
by Varangian
hi Nab, I uploaded before and after screeshots.
they are at:
http://www.hiredweapon.com/post/script_1.jpg
http://www.hiredweapon.com/post/script_2.jpg
the project files:
http://www.hiredweapon.com/post/trim_script folder.zip
again, seems the script leaves unselected comps (that are not precomps of the selected comp) and unused files.
Posted: September 27th, 2006, 7:42 pm
by nab
ok now that's clear...
You have to IMPORT a project first....in your current project.
When you do that, all imported files are in the same folder (called xxxxxx.aep). Then select the comp you want to keep and apply the script.
If you follow this procedure, the script should work fine.