Page 1 of 1

Duplicate Comp Hierarchy Script

Posted: February 3rd, 2010, 6:16 pm
by bchapman
Hi,

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.

Re: Duplicate Comp Hierarchy Script

Posted: February 4th, 2010, 9:35 am
by pdeb
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"

pdeb

Re: Duplicate Comp Hierarchy Script

Posted: February 4th, 2010, 3:04 pm
by bchapman
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"

pdeb
Thanks for the response. I updated to the script to hopefully fix this problem. If you still have trouble with it let me know.