Adobe After Effects Forum
How to paste layer to multiple composition at once?
How to paste layer to multiple composition at once?
by Ujin Roh on Jan 9, 2019 at 3:22:46 am

I copy a layer from one composition and paste it into another composition. But there are more than 100 compositions. Is there a way to paste the selected compositions in the Project panel at once?


Re: How to paste layer to multiple composition at once?
by Oleg Pirogov on Jan 9, 2019 at 9:36:31 pm

In case you'd like to use a script, it's 2 lines of code literally:

for (i = 1; i<=app.project.numItems; i++){
if ((app.project.item(i).typeName=="Composition") && (i!=1)) app.project.item(1).layer(1).copyToComp(app.project.item(i));
}


This copies the layer (app.project.item(1).layer(1)) to all comps. That's assuming that deleting it from the wrong comps is easier than copying it to the target ones.


Re: How to paste layer to multiple composition at once?
by Erik Borzi on Sep 7, 2019 at 8:09:08 pm

Oleg!

Thank You Very Much for this powerful script!!! It works great!

—Erik


Re: How to paste layer to multiple composition at once?
by Alex Bradley on Mar 30, 2020 at 4:30:37 pm

Hi!

I'm hoping to paste a layer into multiple comps too. It sounds like this solution works, though could someone explain in a little more detail how to make the script run?

Thanks


Re: How to paste layer to multiple composition at once?
by Nikhil Kannur on Jun 3, 2020 at 12:01:47 pm

could you please help in using this script, because I am a novice in scripting I can't understand
the working of this script.





© CreativeCOW.net