5 Replies Latest reply: Jun 2, 2010 8:01 AM by Muppet Mark-QAl63s RSS

    How do I copy active artboard from Illustrator to Photoshop?

    Rums Community Member

      Hi,

       

      I need to copy the active artboard from Illustrator to Photoshop. Can this be accomplished? I got a handle to active artboard like this

       

      //get artboard collection

      var myArtboards = myDocument.artboards;

       

      var activeArtBoardIndex = myArtboards.getActiveArtboardIndex();

      var myActiveArtboard = myArtboards [activeArtBoardIndex];

       

      any ideas on copying this artboard to a file in PhotoShop?

       

      thanks for your help.

        • 1. Re: How do I copy active artboard from Illustrator to Photoshop?
          Muppet Mark-QAl63s Community Member

          The 'cut' and 'copy' commands require a selection. So you will need to set the selected property of all the pageItems to true first. I try avoid using the clipboard whenever possible. Would saving the artboard out to file then placing as smart object then remove file not be a better option.

          • 2. Re: How do I copy active artboard from Illustrator to Photoshop?
            Rums Community Member

            Hi,

             

            Thanks for your response. Is there any reason why you prefer to avoid clipboards? If I set the selection of all the page items, how do I make sure the page item is part of the active artboard and not any other artboards?

            Do you have any example scripts for saving active artboards to a file and using smartobjects in Photoshop handy?

            • 3. Re: How do I copy active artboard from Illustrator to Photoshop?
              Muppet Mark-QAl63s Community Member

              The reason for clipboard avoidance is you have no real way of knowing the the data held there has not changed by user interaction between the copy and paste commands. Plus there are a host of multi-clipboard utilities about and I don't know how they would work?

              • 4. Re: How do I copy active artboard from Illustrator to Photoshop?
                artchrome Community Member

                Hi,

                 

                may be..

                 

                1) export Illustrator file as Photoshop ? (as work on CS4, i don't know on older version)

                before

                - you need import your EPS link as embeded file

                - put each object which need to have own (psd)layer on a alone layer (illustrator)

                - some object will be flattened like as symbols ...

                 

                But finally there are will not smart object

                 

                2) save illustrator as AI embeded PDF, and import it in photoshop, but will be not layered art..

                exept if you loop this for each object with each time a different name

                 

                3) i quickly seen that bridgetalk  (it seems) could be used to make that, personnaly i still not understand how to obtains the result from app (unsynchroniously)

                 

                it's just some ideas

                 

                art.chrome

                • 5. Re: How do I copy active artboard from Illustrator to Photoshop?
                  Muppet Mark-QAl63s Community Member

                  I can't even test this (no cs4) not only do I not have artboards no copy or cut either (rubbish)…

                   

                  #target illustrator
                  
                  var docRef = app.activeDocument;
                  
                  with(docRef) {     
                       var count = pageItems.length;
                       for (var i = 0; i < count; i++) {
                            pageItems[i].selected = true;
                       }
                       redraw();
                       copy();
                       for (var i = 0; i < count; i++) {
                            pageItems[i].selected = false;
                       }
                       
                  }