Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi,
Could you please clarify your question more? As per my understanding you need to pass information from AI to PS. So below is an example to send the name of the layers from Illustrator to Photoshop
#target illustrator
function main() {
var doc = app.activeDocument;
var layerNames = new Array();
for (var i = 0; i < doc.layers.length; i++) {
layerNames.push(doc.layers[i].name)
};
layerNames = layerNames.join(',');
var bt = new BridgeTalk();
bt.target = "Photoshop";
var myScript = phScript.toString() + "\r";
myScript += "phScript(\"" + layerNames + "\")";
bt.body = myScript;
bt.send();
}
main()
function phScript(layerNames) {
alert("Layer Names of Illustartor document : " + layerNames)
}
Above function is just passing name of the layers from AI document to the photoshop.
Copy link to clipboard
Copied
Thank you @Charu Rajput
Your script is relative to my needs š
I need to pass the illustrator layer contents (groups, paths, images) to photoshop