Expressions/Scripts/Presets

Moderator: Paul Tuersley

 
mnarlock
Topic Author
Posts: 3
Joined: Mon Aug 02, 2010 9:31 am

Move Layers to a new comp

Wed Feb 26, 2014 3:58 pm

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: Wed May 07, 2008 9:24 am

Re: Move Layers to a new comp

Thu Mar 13, 2014 10:48 am

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

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

Who is online

Users browsing this forum: No registered users and 2 guests