Gimp-Forum.net
Bucket fill whole selection in Python-fu - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: Bucket fill whole selection in Python-fu (/Thread-Bucket-fill-whole-selection-in-Python-fu)



Bucket fill whole selection in Python-fu - TheCosmicKid - 08-21-2025

Hi,

This is a very simple problem, but when I try a bucket fill through a Python-fu call, I always get a "Fill similar colors" result when I need "Fill whole selection". I can't seem to find the relevant setting in the listed context setters for the procedure (I'm looking here). What am I missing?

Thank you!


RE: Bucket fill whole selection in Python-fu - Ofnuts - 08-22-2025

  • Drawable::edit_bucket_fill() is like "fill similar colors" and requires the coordinates of the starting point.
  • Drawable::edit_fill() is like "fill selection" and doesn't require the coordinates of the starting point.
Which one are you using?


RE: Bucket fill whole selection in Python-fu - TheCosmicKid - 08-22-2025

(08-22-2025, 07:40 AM)Ofnuts Wrote:
  • Drawable::edit_bucket_fill() is like "fill similar colors" and requires the coordinates of the starting point.
  • Drawable::edit_fill() is like "fill selection" and doesn't require the coordinates of the starting point.
Which one are you using?

The first one. I didn't notice the second one. I knew it was something simple like that; thank you!