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.
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.
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?
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
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;
}
}
North America
Europe, Middle East and Africa
Asia Pacific