• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Illustrator layer contents, send to to photoshop as separate layers

Contributor ,
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

102

Likes

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

Likes

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
Contributor ,
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

Likes

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