Answered
This topic has been closed for replies.
Thank you very much
Is it possible to have the full code please?
(lrs = (aD = activeDocument).artLayers)
.add().move(lrs[0], ElementPlacement.PLACEBEFORE)
lngth = (lrs1 = [].slice.call(aD.artLayers)).length, lrs2 = [].slice.call(lrs1)
function txt(v) {return v.kind == 'LayerKind.TEXT'} function bnds(v) {return v.bounds[1]}
lrs1.sort(function(v1, v2){return txt(v1) && txt(v2) && bnds(v1) - bnds(v2)}); while
(lrs2.length) (shft = lrs2.shift()).kind == 'LayerKind.TEXT' && (lrs1.shift().move
(aD.artLayers[lngth - lrs2.length], ElementPlacement.PLACEBEFORE))
aD.activeLayer.remove()Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
