• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Illustrator layer contents, send to to photoshop as separate layers

Engaged ,
Apr 30, 2022 Apr 30, 2022

Copy link to clipboard

Copied

Hi!

I deleted and cannot recover  it a script for sending illustrator( pdf) objects, paths or images to photoshop, as separate layers

Can someone help?

TOPICS
Scripting

Views

194

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Apr 30, 2022 Apr 30, 2022

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.

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 30, 2022 Apr 30, 2022

Copy link to clipboard

Copied

LATEST

Thank you @Charu Rajput 

Your script is relative to my needs šŸ™‚

I need to pass the illustrator layer contents (groups, paths, images) to photoshop

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines