Skip navigation
Currently Being Moderated

How do I copy active artboard from Illustrator to Photoshop?

Jun 1, 2010 1:50 PM

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.

 
Replies
  • Currently Being Moderated
    Jun 1, 2010 2:39 PM   in reply to Rums

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2010 4:03 AM   in reply to Rums

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2010 5:20 AM   in reply to Rums

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 2, 2010 8:01 AM   in reply to artchrome

    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;
         }
         
    }
     
    

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points