02-27-2025, 08:04 PM
Just a heads up that if a Script-fu script is implemented as a V3 plug-in you can edit the script file whilst GIMP is running - you don't have to restart GIMP for the changes to take effect. This has been possible with Python scripts for a long time but disappeared when the Refresh Scripts menu option was dropped some time ago. It certainly makes debugging Script-fu scripts much less frustrating :-)
V3 .scm scripts that are plug-ins go into folders with the same names as the first part of the .scm file name (i.e. the part before .scm). These folders then go into the GIMP plug-ins folder, not the scripts folder.
Don't forget to delete the original version of the .scm file from scripts - GIMP complains if there is a plug-in and a script version at the same time.
The following links are useful when making .scm plug-ins - note in particular the use of
at the top of the file
and
at the start of the main function.
https://developer.gimp.org/resource/scri...deprecated
https://testing.developer.gimp.org/resou...script-fu/
V3 .scm scripts that are plug-ins go into folders with the same names as the first part of the .scm file name (i.e. the part before .scm). These folders then go into the GIMP plug-ins folder, not the scripts folder.
Don't forget to delete the original version of the .scm file from scripts - GIMP complains if there is a plug-in and a script version at the same time.
The following links are useful when making .scm plug-ins - note in particular the use of
Code:
#!/usr/bin/env gimp-script-fu-interpreter-3.0
at the top of the file
and
Code:
(script-fu-use-v3)
at the start of the main function.
https://developer.gimp.org/resource/scri...deprecated
https://testing.developer.gimp.org/resou...script-fu/