RSS/Atom feed Twitter
Site is read-only, email is disabled

Unable to get simple python plugin to show up

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2021-09-29 06:32:39 UTC (over 2 years ago)
postings
2

Unable to get simple python plugin to show up

Thank you in advance for anybody helping.

I am using GIMP 2.10.28 on Windows 7. I am following the youtube video at

https://www.youtube.com/watch?v=nmb-0KcgXzI&t=480s&ab_channel=JacksonBates

for developing a simple Python plugin. I am unable to get the simple plugin to show up. The sample exercise in the video is to add a "gimp-Hello-Warning" in the File menu. But no matter where I put the .py file, it doesn't show up. I've tried all of the places in the edit -> preference -> folder -> plugins and no luck.

C:\Users\####\AppData\Roaming\GIMP\2.10\plug-ins E:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins

I even tried:

C:\Users\####\AppData\Roaming\GIMP\2.10\scripts E:\Program Files\GIMP 2\lib\gimp\2.0\scripts

Here's the no brainer program

#!/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",
"This is a short message",
"This is a long message",
"Myname", "Myname", "2021",
"NAME FOR MENU",
"*", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...) [
# basic parameters are: (UI_ELEMENT, "variable", "label", Default) (PF_IMAGE, "image", "takes current image", None), (PF_DRAWABLE, "drawable", "Input layer", None) # PF_SLIDER, SPINNER have an extra tuple (min, max, step) # PF_RADIO has an extra tuples within a tuple: # eg. (("radio_label", "radio_value), ...) for as many radio buttons # PF_OPTION has an extra tuple containing options in drop-down list # eg. ("opt1", "opt2", ...) for as many options # see ui_examples_1.py and ui_examples_2.py for live examples ],
[],
Hello-Warning, menu="/File") # second item is menu location

main()

2021-09-29 09:24:57 UTC (over 2 years ago)
postings
16

Unable to get simple python plugin to show up

This place is basically dead and overrun with spammers.

Here's a guide to debugging Python scripts on an active forum: https://www.gimp-forum.net/Thread-Debugging-python-fu-scripts-in-Windows

You could alternatively ask on http://gimpchat.com/ or https://gimplearn.net/

Thank you in advance for anybody helping.

I am using GIMP 2.10.28 on Windows 7. I am following the youtube video at

https://www.youtube.com/watch?v=nmb-0KcgXzI&t=480s&ab_channel=JacksonBates

for developing a simple Python plugin. I am unable to get the simple plugin to show up. The sample exercise in the video is to add a "gimp-Hello-Warning" in the File menu. But no matter where I put the .py file, it doesn't show up. I've tried all of the places in the edit -> preference -> folder -> plugins and no luck.

C:\Users\####\AppData\Roaming\GIMP\2.10\plug-ins E:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins

I even tried:

C:\Users\####\AppData\Roaming\GIMP\2.10\scripts E:\Program Files\GIMP 2\lib\gimp\2.0\scripts

Here's the no brainer program

#!/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",
"This is a short message",
"This is a long message",
"Myname", "Myname", "2021",
"NAME FOR MENU",
"*", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...) [
# basic parameters are: (UI_ELEMENT, "variable", "label", Default)
(PF_IMAGE, "image", "takes current image", None), (PF_DRAWABLE, "drawable", "Input layer", None) # PF_SLIDER, SPINNER have an extra tuple (min, max, step) # PF_RADIO has an extra tuples within a tuple: # eg. (("radio_label", "radio_value), ...) for as many radio buttons
# PF_OPTION has an extra tuple containing options in drop-down list
# eg. ("opt1", "opt2", ...) for as many options # see ui_examples_1.py and ui_examples_2.py for live examples ],
[],
Hello-Warning, menu="/File") # second item is menu location

main()

2021-09-29 10:45:21 UTC (over 2 years ago)
postings
2

Unable to get simple python plugin to show up

This place is basically dead and overrun with spammers.

Here's a guide to debugging Python scripts on an active forum: https://www.gimp-forum.net/Thread-Debugging-python-fu-scripts-in-Windows

You could alternatively ask on http://gimpchat.com/ or https://gimplearn.net/

Thank you.

2021-12-19 12:04:15 UTC (over 2 years ago)
postings
5

Unable to get simple python plugin to show up

I want to develop a simple Python plugin but always I am unable to get a simple python plugin to show up and in the end, I started searching for its solution online and I am glad I have found your post in which you have shared a link to the guide to debugging Python scripts. Thank you so much for your help. I am a website developer and I am working on this https://www.topessaywriting.org/samples/british-empire site. Because of this, I am gathering information online regarding Python plugin.