12-13-2022, 01:57 PM
(This post was last modified: 12-13-2022, 01:58 PM by programmer_ceds.)
The "*" should be in the line before the SF-IMAGE line. Specifying "" means that the script will be enabled whether or not there is an active image - which makes the SF-IMAGE parameter redundant - probably not what you want.
A minor correction to what Ofnuts said - the script will only appear in the menu if GIMP hasn't detected a problem with it. In your case GIMP has detected a problem so no script in the menu.
It might be worth you looking at the standard Script-Fu scripts for V2.10 - the latest versions are at:
https://gitlab.gnome.org/GNOME/gimp/-/tr...fu/scripts
If GIMP is open and you make a change to a Python script it will take effect the next time you run the script (you don't have to stop and restart GIMP). However, with a Script-Fu script any changes that you make to the script will not take effect until you either stop and restart GIMP or use "Filters/Script-Fu/Refresh Scripts" (note that this second option doesn't currently work with GIMP V2.99 - it simply removes all Script-Fu scripts from the menus!)
A minor correction to what Ofnuts said - the script will only appear in the menu if GIMP hasn't detected a problem with it. In your case GIMP has detected a problem so no script in the menu.
It might be worth you looking at the standard Script-Fu scripts for V2.10 - the latest versions are at:
https://gitlab.gnome.org/GNOME/gimp/-/tr...fu/scripts
If GIMP is open and you make a change to a Python script it will take effect the next time you run the script (you don't have to stop and restart GIMP). However, with a Script-Fu script any changes that you make to the script will not take effect until you either stop and restart GIMP or use "Filters/Script-Fu/Refresh Scripts" (note that this second option doesn't currently work with GIMP V2.99 - it simply removes all Script-Fu scripts from the menus!)