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

layer move with script

Explorer ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

Is there a way to move layers within a layer outside using a script like this?

thank you.

 

shusaku_tr_1-1713118818573.png

 

shusaku_tr_0-1713118515204.png

 

TOPICS
SDK , Tools

Views

78

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

correct answers 1 Correct answer

Guide , Apr 14, 2024 Apr 14, 2024

Yes, there is a way.  How you do it depends on whether "c" is a sublayer or an item (for example, a group item). 

var doc = app.activeDocument;
var source = doc.layers["Layer 1"];
var goal = doc.layers["Layer 2"];
source.layers["Sublayer"].move(goal, ElementPlacement.PLACEATEND);
source.pageItems["Group"].move(goal, ElementPlacement.PLACEATEND);

femkeblanco_0-1713127862651.png

Votes

Translate

Translate
Adobe
Guide ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

Yes, there is a way.  How you do it depends on whether "c" is a sublayer or an item (for example, a group item). 

var doc = app.activeDocument;
var source = doc.layers["Layer 1"];
var goal = doc.layers["Layer 2"];
source.layers["Sublayer"].move(goal, ElementPlacement.PLACEATEND);
source.pageItems["Group"].move(goal, ElementPlacement.PLACEATEND);

femkeblanco_0-1713127862651.png

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
Explorer ,
Apr 14, 2024 Apr 14, 2024

Copy link to clipboard

Copied

LATEST

Thank You !

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