Hi all
Long time reference-reader and now first-time poster.
I have been wrestling with my first attempt at a scheme script, having been a python-fu exclusive operator for years. And it is not going well.
I am trying to call a plugin of mine from a scheme script, so that it can be run with BIMP. (The plugin is not appearing due to file management conflicts as far as I understand)
So far I have:
(define (script-fu-batch-mockup image)
(let* ((drawable (car (gimp-image-get-active-layer image))))
(flux-freelance-mockup RUN-NONINTERACTIVE
image
drawable))
)
(script-fu-register
"script-fu-batch-mockup"
""
"Run the mockup generator"
""
""
""
""
SF-IMAGE "Input Image" 0
SF-DRAWABLE "Input Drawable" 0
)
But alas it is not working - after thousands of various iterations from all over, with GIMP throwing up:
Quote:
Calling error for procedure 'script-fu-batch-mockup':
Error: eval: unbound variable: flux-freelance-mockup
I have added the SF entries at the base, "RUN-NONINTERACTIVE", "script-fu-" at the beginning of the function and more attempts.
Any experienced insight would be much appreciated. I can see the potential in scheme, but so far it seems so alien to me.
Seb