Move Layers to a new comp

Moderator: Paul Tuersley

Post Reply
mnarlock
Posts: 3
Joined: August 2nd, 2010, 9:31 am

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?
lilsmokie
Posts: 10
Joined: May 7th, 2008, 9:24 am

LayerCollection precompose() method
app.project.item(index).layers.precompose(layerIndicies, name, moveAllAttributes);

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