03-23-2025, 06:31 PM
(03-23-2025, 02:36 PM)joeyeroq Wrote: Is there a difference between script and plugin in gimp 3?
Yes, but now you can also have plug-ins written in Scheme/script-fu (but as they say it's not because you can that you should...)
(03-23-2025, 02:36 PM)joeyeroq Wrote: Is it still possible to show a gimp python script in the menu, or does this only work for plugins in Gimp 3?
Python "scripts" have always been technically "plugins" (ie, they run in their own individual process)
(03-23-2025, 02:36 PM)joeyeroq Wrote: For example this simple script worked in gimp 2.10:
A file named python-fu-hello-warning.py in folder "C:\Users\USERNAME\AppData\Roaming\GIMP\2.10\plug-ins" with code:
Code:
#!/usr/bin/env python
# Hello Warning
from gimpfu import *
def hello_warning():
pdb.gimp_message("hello warning")
register(
"python_fu_hello_warning",
"Hello warning",
"Hello warning TO ERROR CONSOLE",
"Walter Moore",
"Walter Moore",
"2020",
"Hello warning (Py)...",
"",
[],
[],
hello_warning,
menu="<Image>/File/HelloWarning"
)
main()
Is this still possible in Gimp 3?
Things have changed quite a lot:
- Python is Python V3 with slight syntax changes
- The registration process is different
- The API is different, you hardly use the PDB.