Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with vector input for polygon selection
#2
Warning: I starkly refuse to use 1950-era Scheme when I can use 1990-era Python for my Gimp scripts. But there are plenty of common things, so:

It appears that the doc (at least on the Python side...) is somewhat ambiguous. The 'length" parameter is really the plain length of the list of coordinates (which is also how all the other PDB calls work...), so if you have a polygon with 5 points, it should say "10". Note that you don't need to specify more than N pairs if the polygon has N summits, because Gimp will auto-close the polygon (so in your case, (122. 67. 138. 67. 138. 81. 122. 81.) 8) should work).
Reply


Messages In This Thread
RE: Trouble with vector input for polygon selection - by Ofnuts - 02-11-2018, 10:33 PM

Forum Jump: