Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop Scripting Photoshop

  • Scripting Photoshop

    Posted by Matthew Joal on January 9, 2008 at 8:45 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!

    Ekim Wahs replied 18 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Ekim Wahs

    January 10, 2008 at 12:00 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy