Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing script-fu "refresh scripts" submenu
#2
(07-01-2025, 07:20 PM)Frenchie Wrote: Hello,
Sorry for my bad English (translated by Google Translate),
I just downloaded version 3.0.4 of Gimp. Previously, I was using version 2.10.38.
I created several scripts that worked fine with version 2.10. Following the changes made in version 3.0, some functions have disappeared (for example, gimp-image-set-active-layer was replaced by gimp-image-set-selected-layers) or their parameters are different (for example, gimp-edit-copy has a new parameter "vector").
Updates are tedious (edit the script - test - edit again... until the script works correctly).
In version 2.10, it was possible to edit the script file (.scm) and have the update taken into account in Gimp via the "refresh scripts" submenu. However, this submenu is missing in version 3.0. You must therefore close Gimp and reopen it each time you make a change.
Do you know if there is a way to either make the "refresh scripts" submenu appear or to take script changes into account without closing Gimp?
Thank you in advance for your answers.

The solution is to make your SCM code run as a a plain plugin (yes, this is doable in v3). Then you don't even need to refresh your script, it's implicit because your coded is reloaded from disk when invoked. As with Python I assume this is fine as long as you don't change the registration part, since that part is only checked and taken in account when Gimp restarts.
 
I don't know how much changes this requires in the registration code nor exactly how it is done for script-fu, but now that you know what to look for...
Reply


Messages In This Thread
RE: Missing script-fu "refresh scripts" submenu - by Ofnuts - 07-02-2025, 12:21 AM

Forum Jump: