Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the (x;y) coordinates of a layer ? [Script-Fu]
#2
Hi,

I don't know Scheme, but I knew to look for 'offsets', and I found this in a version of Akkana Peck's 'arrow.scm' script.

Code:
            (set! x_offset (car (gimp-drawable-get-offsets drawable)))
            (set! y_offset (cadr (gimp-drawable-get-offsets drawable)))
Reply


Messages In This Thread
RE: How to get the (x;y) coordinates of a layer ? [Script-Fu] - by gasMask - 07-23-2024, 02:44 PM

Forum Jump: