(08-06-2024, 07:49 AM)Ofnuts Wrote: Can you zip one of your failing Python script and attach the ZIP here? Can you show what the empty python-fu console displays?
Sample codei've tried. Attached screens with empty and entered script console and error output (transaltion in the first post)
Code:
from gimpfu import *
def hello_warning(image, drawable):
pdb.gimp_message("Hello world!")
register(
"python-fu-hello_warning",
"SHORT DESCRIPTION",
"LONG DESCRIPTION",
"rg", "rg", "2024",
"Hello_warning",
"", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...)
[
# basic parameters are: (UI_ELEMENT, "variable", "name", Default)
(PF_IMAGE, "image", "takes current image", None),
(PF_DRAWABLE, "drawable", "input layer", None)
],
[],
hello_warning, menu="<Image>/File") # second item in menu location
main()