collect files (comp only)

What type of scripts do you need?

Moderator: byronnash

Post Reply
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

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?
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

oh, wow, I didn't even look, someone just requested this a few posts down!

Well, maybe my post will help describe this further.
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

hehe I had mostly the same idea few months ago but was too busy (or too lazy :P) 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 8)
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

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!)
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

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).
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

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
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

hum...strange.

I've made many tests and unused comps and files are removed from the project when I choose the option.

Image


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).
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

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.
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

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.
Post Reply