#!/usr/bin/env python # GIMP Plugin - Hello World # Copyright (c) 2013 Matt Hawkins # http://www.mattsbits.co.uk # This is an example Python-fu plugin # It changes the background and foreground colours to red and green. from gimpfu import * def python_hello_world(timg, tdrawable): g = gimp.pdb # Set foreground and background colours g.gimp_context_set_foreground((255,0,0)) g.gimp_context_set_background((0,255,0)) # Do other stuff here # ... # ... register( "python_hello_world", "It changes the background and foreground colours to red and green.", "It changes the background and foreground colours to red and green.", "Matt Hawkins", "Matt Hawkins", "2013", "/Filters/MattsBits/_Hello_World", "RGB*,GRAY*", [], [], python_hello_world) main()