Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python-fu delete selection
#1
This is my first project with python-fu.  I have a routine I need to do on hundreds of images, a few times on each image. 

What I need to do is

1. Select a color using pdb.gimp_image_select_color
2. Delete the contents of that selection

This is the equivalent of

1. Using the Select By Color Tool (Shift O)
2. Hitting the delete button on the keyboard


I can create the selection but I am not sure how to delete the contents within the selection. Can someone steer me in the right direction for what I need to do next or point me towards an example?

Many thanks
Reply


Messages In This Thread
Python-fu delete selection - by cfdirt - 03-27-2018, 08:22 PM
RE: pythpn-fu delete selection - by Ofnuts - 03-28-2018, 06:13 AM
RE: pythpn-fu delete selection - by cfdirt - 03-28-2018, 12:39 PM

Forum Jump: