Page 1 of 1

Move Layers to a new comp

Posted: Wed Feb 26, 2014 3:58 pm
by mnarlock
Hello,

I have a script that adds various text layers to an existing comp. I'd like to move those layers to a pre-comp, keeping the pre-comp in the original comp. Is this doable?

Re: Move Layers to a new comp

Posted: Thu Mar 13, 2014 10:48 am
by lilsmokie
LayerCollection precompose() method
app.project.item(index).layers.precompose(layerIndicies, name, moveAllAttributes);

or you could create the comp and use
layer.copyToComp(compLocation);