FORUMS: list search recent posts

extendscript, move layer not in a group!!

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Spencer Tweed
extendscript, move layer not in a group!!
on Mar 13, 2015 at 2:48:19 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


Return to posts index

Spencer Tweed
Re: extendscript, move layer not in a group!!
on Mar 16, 2015 at 9:27:15 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]