03-05-2024, 08:51 PM
(03-05-2024, 05:52 PM)gimpygirl Wrote:(03-05-2024, 07:12 AM)Tas_mania Wrote: In the layers box next to the eye you can see a chain link. Shift + click in that row links the layers. From there you can go to Layer > Group > pack linked layers. This makes them all behave like a single layer. Then Layer > Transform > flip horizontally.
I work with multiple layers like this often. You can also resize them. When done just unpack and unlink.
Thanks but I was also looking for the correct code to loop through all layers of image. I'm making a plugin
Well, for an "apply to all layers", the attached snippet of code works for me. Equivalent is Layer -> Transform -> Flip Vertically for each layer.
You could of course just flip the whole image Image -> Transform -> Flip Vertically then no need to cycle through the layers.