Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JacksonBates
Last active June 23, 2019 04:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JacksonBates/4d73ac7c075516e3f427 to your computer and use it in GitHub Desktop.
Save JacksonBates/4d73ac7c075516e3f427 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def hello_warning(image, drawable):
# function code goes here...
pdb.gimp_message("Hello, world!")
register(
"python-fu-hello-warning",
"Hello world warning",
"Prints 'Hello, world!' to the error console",
"Jackson Bates", "Jackson Bates", "2015",
"Hello warning",
"", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...)
[
(PF_IMAGE, "image", "takes current image", None),
(PF_DRAWABLE, "drawable", "Input layer", None)
],
[],
hello_warning, menu="<Image>/File") # second item is menu location
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment