3 Replies Latest reply on Nov 8, 2012 7:05 AM by Simon Dav

    Move objects/strokes/fillcolour/text with defined swatches on its own layers

    rajnikids Level 1



      When i run this script, each and every elements goes into seperate layers.


      I need a help to rebuild it; so the each objects/fillcolors/storkes/textframes with specific swatch has to move to seperate layer.



      for (aa = 0; aa<app.activeDocument.pageItems.length; aa++){



      currentItem = app.activeDocument.pageItems.item(aa)

      newLayer = app.activeDocument.layers.add();