Hi Sabine,
I just added a tool to the Automation Blocks Community Library for you at
Project/Duplicates/Eliminate Duplicate Project Items
It checks if there are any duplicate items in your project (i.e. if they have exactly the same name and are contained in exactly the same bin). If it finds duplicates, it deletes the first one and uses the second instead wherever the first one was used in the project.
By default, the tool processes both footage and comp items. Since you only want to eliminate duplicate comps, I recommend to disable the footage item checkbox at the green block near the top of the script (for faster processing):
Technical background info:
The tools works such that it renames all project items one by one temporarily. After renaming an item, it checks if an item with the original name could still be found. If this is the case, it knows that there must be a duplicate. If not it renames the item a second time, to go back to the original name. The tool assumes that you have no project item in your project with the name "no project item should have this name", which should be the case for most projects I guess.
Let me know if this works for you. 🙂
... View more