03-02-2024, 12:56 PM
Which is why the first thing to do is to run the script in command prompt outside of Gimp (yes, it' easier to do on Linux/OSX, but it can also be done in Windows):
Bad code, will definitely not run when Gimp tries to make it register:
Worth trying (doesn't mean there are zero errors, but these will show when the script is used):
This is also why it is important to use an adequate editor, that won't try to "help".
Bad code, will definitely not run when Gimp tries to make it register:
Code:
$python ggtest.py
File "ggtest.py", line 40
gimp.message(e.args[0])
^
IndentationError: unexpected indent
Worth trying (doesn't mean there are zero errors, but these will show when the script is used):
Code:
$python ggtest.py
Traceback (most recent call last):
File "ggtest.py", line 5, in <module>
from gimpfu import *
ImportError: No module named gimpfu