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

I tried by searching with "position" (not that...), "coordinates", "x" / "y", ... and checked all procedure with "get" in it ....
Ok, the key-word is "offset" !! Big Grin

I see no "*-get-offsets" in the procedures reference ... even though "-layer-set-offsets" exists .......
... but in fact I see a gimp-drawable-offsets notified as "returns the offsets for the drawable" !!
Disturbing in some ways because this name is not consistent with the names used for the other procedures ... in addition there is a gimp-drawable-offset ... which "offset the drawable by the specified amounts in the X and Y directions" ... nonsensical, just with or without "s" ?? it should be "get" and "set" procedures .... but, finally ... if it works it will be ok ! Tongue 

Thanks again !

(Ok, I'm getting a little angry on my own ... I forgot that for width and height it's gimp-drawable-width / -height ... without "-get-" ...  Confused Big Grin )
Reply


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

Forum Jump: