Re: [Gimp-user] Need a script to output position of images within image.

On Wed, May 30, 2012 at 7:44 PM, stephen <forums gimpusers com> wrote:
I created a jigsaw puzzle from an image.  All the pieces exist in different layer.

Is there a way to get the position of the pieces (a script or a menu command)?  I realize I could use the 
ruler, however, I would like something that would be more exact and less tedious.

With only one image open, from the python-fu console:

img = gimp.image_list()[0]

for layer in img.layers:
    print, layer.offsets


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]