Scope the collection to exactly the comps you need.
The Collect dropdown at the top of the dialog decides which compositions (and therefore which footage files) end up in the collected project.
Option
Collects
All
Every composition and every footage file in the project, used or not.
For All Comps
Every composition, plus only the footage actually used in them.
For Selected Comps
The compositions selected in your Project panel. Disabled unless at least one composition is selected.
For Queued Comps
The compositions queued in the Render Queue. Disabled unless at least one item has Queued status.
Regular Expression
Every composition whose name matches the pattern you type in the field beside the dropdown.
For Selected Comps, For Queued Comps, and Regular Expression automatically pull in every precomp nested inside the comps they match, so you never end up with a collected project full of missing precomps.
Compositions outside the scope are removed from the collected copy of the project (your original is untouched), and footage not used by any collected comp isn’t copied.
With Regular Expression selected, type a pattern into the field beside the dropdown and every composition whose name matches it is collected. The summary at the bottom of the dialog updates live, so you can see how many comps the pattern catches before you commit.A few things to know:
Patterns use standard regular expression syntax and are case-sensitive.
A pattern matches anywhere in the name: v02 catches Shot_v02_final. Anchor with ^ (starts with) and $ (ends with) to be exact.
An invalid or empty pattern matches nothing, and the summary will show 0 comps.