Copy link to clipboard
Copied
Is there a way to move layers within a layer outside using a script like this?
thank you.
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);
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);
Copy link to clipboard
Copied
Thank You !