3 Replies Latest reply on Nov 3, 2017 6:47 AM by Silly-V

    SCRIPTING HELP: duplicating image into grid?


      Hello everyone! So scripting is my area of weakness, but I wanted to ask if anyone could help me write a script template that could take my image and duplicate it into a grid. Here is an example image:


      I start by taking this image and clipping it into a circle shape. From here, the script would need to do the following:

      1. duplicate it into a 5x6 grid

      2. export this file into .PDF format, for printing on standard letter 8.5" x 11" paper


      Here is a screenshot of my grid template:

      Screen Shot 2017-10-30 at 2.52.45 PM.png


      I'm also linking my template illustrator file here: Dropbox - blank CD.ai


      Please see screenshot of the desired output below:

      Screen Shot 2017-10-30 at 2.42.29 PM.png

      The goal is to create a script template that works so I can do this with any image on my computer. Can anyone help? Thanks in advanced!

        • 1. Re: SCRIPTING HELP: duplicating image into grid?
          Silly-V Adobe Community Professional

          Why not start with a template which has one little circle with a placed image clipped inside of it. Now, all you have to do is relink the image to have the new picture appear in the circle at the smaller size. Then use the Live Transform effect on your one circle to create your grid of circles.

          To use Live Transform effect - select the circle group and apply a transform effect with a horizontal move and some copies. Then apply the same effect again, this time with a vertical offset and a number of copies.

          In this image, I have this applied to a path, but this can be applied to a group containing a clipped placed file too.

          Screen Shot 2017-10-30 at 10.30.06 PM.png

          Screen Shot 2017-10-30 at 10.30.43 PM.png

          Using a library of graphic of styles you can have all sizes of step-&-repeat accessible via click in a list view.

          • 2. Re: SCRIPTING HELP: duplicating image into grid?
            ksino Level 1

            This is great for setting up the grid, however I am having issues "recording" the transform effect action. I want to automate this for future use. What am I doing wrong?

            • 3. Re: SCRIPTING HELP: duplicating image into grid?
              Silly-V Adobe Community Professional

              You have to save your transforms in a graphic style and an action can apply the graphic style of a particular name that is present in the document.


              To record a live effect into a graphic style, use Window > Graphic Styles to use the graphic styles panel.


              If you have several different transform configurations, and do not care for the entire library of transform graphic styles to be present inside your active document, you can build into your actions an action which copy/pastes from a file all artwork, and you can have the graphic styles attached to this artwork - it will make them appear in your document you're pasting into.


              Such an action to fetch styles will need to open a file, select all, copy, then close active file, then do paste to paste into the file that was originally open, then do delete to remove the pasted artwork - the styles stay in the document.

              1 person found this helpful