Re: [Gimp-user] How to get the positions(x, y) (width, depth) of selected rectangle or selected ellipse



On Python console, this is what you want.
non_empty, x1, y1, x2, y2 = pdb.gimp_selection_bounds(image)
See, 'gimp-selection-bounds' at Procedure Browser.
But, handning values to external App is not so easy.
If you add external library 'pyperclip' you can write to clipboard.
But it is one value only... Yes, maybe, not suit for you.
One solution is that create text layer about that.
Then you can copy manually.

2020年2月14日(金) 15:14 tamasakai <forums gimpusers com>:

How to get the positions(x,y) (width, depth) of selected rectangle or
selected
ellipse
I read such numbers  on GIMP and write them in Excel files but sometime
human
error occurs.
I want to automate the process.
I read instructions of Python-Fu but there so many functions then I could
not
find out how to do it.
Please help me.

--
tamasakai (via www.gimpusers.com/forums)
_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list



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