Previous | Next

Dialog parameters

from gimpfu import *

def do_stuff(img, layer, howmuch) :
    pdb.gimp_invert(layer)

register("python_fu_do_stuff",
	 "Do stuff", "Do some neat stuff",
	 "Your Name", "Your Name", "2008",
	 "Do Stuff...",
	 "RGB*",
	 [(PF_INT, "amt", "How much stuff?", 50)]
	 [],       # return vals, seldom used
	 do_stuff,
         menu="<Image>/Filters/Enhance")

main()
Of course, the param in this particular example does precisely nothing. It's ignored.

That's okay, you'll see more examples shortly.