Skip to main content
Participant
June 1, 2010
Question

How do I copy active artboard from Illustrator to Photoshop?

  • June 1, 2010
  • 1 reply
  • 9471 views

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.

This topic has been closed for replies.

1 reply

Muppet_Mark-QAl63s
Inspiring
June 1, 2010

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.

RumsAuthor
Participant
June 1, 2010

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?

Muppet_Mark-QAl63s
Inspiring
June 2, 2010

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?