Help / Procedure Browser |
C:\Program Files\GIMP 2\share\gimp\2.0\scripts\script-fu.init |
C:\Program Files\GIMP 2\share\gimp\2.0\scripts\*.scm |
C:\Documents and Settings\[username]\.gimp-2.8\scripts\script-fu-somename.scm |
Filters / Script-Fu / Refresh Scripts |
; Explain why this file exists ; ; 07-xx-14 started file ; mm-dd-yy track changes with a date ; (define (script-fu-make-icon inImage inDirName inFileName ) ; 3 arguments ; your code goes here ) (script-fu-register "script-fu-make-icon" ; function name "Make Icon" ; menu label "This line is shown in the status bar\ additional lines are shown in the\ pop-up help window." ; description "Your Name" ; author "Copyright 2014, Your Name" ; copyright notice "July 2014" ; date created "" ; image type that the script works on SF-IMAGE "Image" 0 ; the arguments passed to the function SF-DIRNAME "dirname" "/xyz" SF-STRING "Filename" "test.ico" ) (script-fu-menu-register "script-fu-make-icon" ; "<Image>/Tools/xyz") ; This is where I want it "<Image>/Filters/xyz") ; This is just for test |
Comments start with semicolons. This error occurs when there is a colon where it should be a semicolon. : 8) means that the error is in line 8. | ||||
![]() |
Good
Bad
|
![]() |
The previous error would have been easier to find if the semicolon was just missing.
|
![]() | This is the error shown when a closing parenthesis is missing. |
![]() |
It is easy to miss this error - it occurs
for a short time in the status bar at the bottom of the image ..
then it disappears.
What it means is that there is an error in script-fu-register and it has nothing to do with whether a subroutine with that name exists! script-fu-register requires 7 parameters - if it has 6 you get this error. |
![]() |
I counted the arguments many times - the number was identical ..
until I saw the extra space :(
When you are just starting, you never know what to believe.
The following should have 4 arguments - but actually has 5!
|
Most of the other errors I have seen are pretty straight forward and easy to understand.