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

layer move with script

Explorer ,
Apr 14, 2024 Apr 14, 2024

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

thank you.

 

shusaku_tr_1-1713118818573.pngexpand image

 

shusaku_tr_0-1713118515204.pngexpand image

 

TOPICS
SDK , Tools
237
Translate
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.pngexpand image

Translate
Adobe
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.pngexpand image

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

Thank You !

Translate
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