08-24-2017, 07:56 AM
In that case
- Remove the SF-FILENAME paramter from the script-fu-register section
- Remove the inLogo parameter from the define of script-fu-logo
- Assign inLogo to the fixed filepath
Code:
((define (script-fu-logo inImage)
(let*
(
(inLogo (string-append "" gimp-data-dir "/scripts/images/logo.png"))
(calque (car (gimp-file-load-layer 1 inImage inLogo)))
)
(gimp-image-add-layer inImage calque 0)
(gimp-image-flatten inImage)
) ; fin let*
) ; fin define
(script-fu-register "script-fu-logo"; name
"<Image>/MyScripts/logo" ; position in menu
"test script"; commentary
""; author
"" ;
"" ;date
"" ;
SF-IMAGE "inImage" 0
)