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?
collect files (comp only)
Moderator: byronnash
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

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

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!)
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!)
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).
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).
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).
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).
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.
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.
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.
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.