Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] How to modify this script-fu?
#2
In that case
  1. Remove the SF-FILENAME paramter from the script-fu-register section
  2. Remove the inLogo parameter from the define of script-fu-logo
  3. 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
)
Reply


Messages In This Thread
RE: How to modify this script-fu? - by Kevin - 08-24-2017, 07:56 AM
RE: How to modify this script-fu? - by boolbilam - 08-24-2017, 09:07 AM

Forum Jump: