Hi There,
I’m trying to do something similar to Igor but still having difficulty…

I need to replace old comps with newer comps as layers in multiple compositions. I’ve included an annotated screenshot to explain exactly what I mean. Essentially I’ll have a folder full of “_OLD” comps and another folder full of “_NEW” comps. I’ll also have a folder full of comps that contain the “_OLD” comps as layers.
What I’m trying to do (with varying degrees of success…) is replace the “_OLD” layers with the “_NEW” layers inside the “REPLACED” comps. But I’ve been doing it by index and running into problems when the “REPLACE” comps have additional layers.
I think I need to:
-loop through the all of the “REPLACED” comps (Currently in a MON folder) to look for layerscomps the contain “_OLD”
-For layers that contain “_OLD” check to see if there is a corresponding “_NEW” comp in the “NEW_COMPS” folder
-If the layer exists, replace the “_OLD” layer in the “REPLACED” comp, else alert(“CANT FIND COMP x…”)
I think this logic would replace everything correctly but my JS is apparently atrocious…
Thanks for any help/tips!
Tom