Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop extendscript, move layer not in a group!!

  • extendscript, move layer not in a group!!

    Posted by Spencer Tweed on March 13, 2015 at 2:48 am

    Hey guys, first post in the Photoshop forum! I’m a pretty good extendscript coder for After Effects, but I’m trying my hand at Photoshop (need to process a hundred images with the same command – don’t want an Action).

    I have the bulk of my code done, the one thing I can’t figure out is the stupidest little thing – I’m just trying to move a layer to the bottom of the document. I tried using the layer.moveToEnd() and layer.move(ElementPlacement.PLACEATEND) methods but they both require a layerSet – which I don’t have because there are no groups.

    So what the hell? How do you move a layer if it isn’t in a group?! I know I’m probably missing something really simple…

    – Spencer

    Spencer Tweed replied 11 years, 1 month ago 1 Member · 1 Reply
  • 1 Reply
  • Spencer Tweed

    March 16, 2015 at 9:27 pm

    Figured it out (sort of) with action listener. Just listened to the shortcut and turned that into a function, then I pass the layer as an argument. Kind of cheesy, but works for what I need.

    – Spencer

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy