Here's a script I wrote that creates a duplicate of a comp and it's complete hierarchy.
It recursively searches through the comp hierarchy and creates duplicates.
Then, it replaces the source of the layers with those new duplicates.
It also checks to make sure that the subcomps are duplicated only once, despite being used in multiple subcomps.
UPDATE: I've added some error checking to prevent a couple of problems.
All things .jsx
Moderator: Paul Tuersley
3 posts • Page 1 of 1
Thanks for the response. I updated to the script to hopefully fix this problem. If you still have trouble with it let me know.pdeb wrote:Thanks for your work on this script.
I ran the script and it returned this error:
"Unable to execute script at line 21. undefined is not an object"