Windows 10, GIMP 2.10.36
I have a basic plugin in my own directory (which has been added to the preferences) - and also one I've downloaded, in the same directory.
The one I've downloaded appears and works, my own doesn't appear (except once or twice it has but as soon as I made a change it vanished again).
I'm a very experienced coder (50 years) many different languages though not Python, but I get it: indent-based formatting with spaces not tabs.
I have scoured my code to ensure there's no tabs.
The example script I downloaded was AutomatedJpgToXcf from gimp[.]org/tutorials (system won't let me use the URL, I'm new therefore it must be spam). I made one change to make it appear on a new menu called "Automation" so it goes with the one I'm
trying to write
And here's mine:
#! /usr/bin/env python
#
#
############################################################################
#
from gimpfu import *
import os
import re
#
def generate_listing_images(srcPath, tgtPath):
pdb.gimp_message ('Hello')
#
############################################################################
#
register (
"python-fu-generate-listing-images", # Name registered in Procedure Browser
"Generates listing images", # Description
"Generate listing images blah blah blah blah blah blah blah bl",
"Steve Turnbull", # Author
"Steve Turnbull", # Copyright Holder
"February 2024", # Date
"Generate listing images", # Menu Entry
"", # Image Type - No image required
[
( PF_DIRNAME, "srcPath", "Designs directory", "" ),
( PF_DIRNAME, "tgtPath", "Listings directory", "" ),
],
[],
generate_listing_images, # Matches to name of function being defined
menu = "<Image>\Automation" # Menu Location
)
main()
When I run GIMP the imported plugin appears. Mine doesn't.
This is extremely frustrating ... help?