Last active
June 23, 2019 04:49
-
-
Save JacksonBates/4d73ac7c075516e3f427 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI | |
# Feedback welcome: [email protected] | |
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