FORUMS: list search recent posts

Scripting Photoshop

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Matthew Joal
Scripting Photoshop
on Jan 9, 2008 at 8:45:39 pm

I am trying to copy all the layers from one document to a smart object document. I need to do this with script - does anyone know how to copy all the layers from one document and paste or move them into an active document?

Thanks!



Return to posts index

ekim wahs
Re: Scripting Photoshop
on Jan 10, 2008 at 12:00:21 am

use layers.length to get the number of layers in the file

for (var i=0; i < layers.length; i++)
{
select layer[i]
duplicate the layer to the other doc
(probably need listener code for the dupe)
or select all and copy and paste to the other doc
}



Mike Shaw
Photoshop QE


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]