Answered
layer move with script
Is there a way to move layers within a layer outside using a script like this?
thank you.


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);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.