I am getting an “Illegal Function” error message for a Script-Fu script I
wrote. Can anyone tell me what I am doing wrong?
The script is supposed to make a selection from the active path (vector), fill
the selection with the foreground color and stroke the selection with the
active brush.
I have run the entire script and the “define” part through the Script-Fu
console with out any errors. The individual commands also work when I enter
them in the console.
I am running Gimp 2.6.8 with an Ubuntu 10.4 operating system. The script also
shows an illegal function with Windows7.
Here is the script:
(define (script-fu-colorline image drawable)
(let* ((MyVector (car ((gimp-image-get-active-vectors image)
(gimp-image-undo-group-start image)
;This clears the active layer
(gimp-edit-clear drawable)
(gimp-vectors-to-selection MyVector CHANNEL-OP-REPLACE TRUE FALSE 5 5)
(gimp-edit-fill drawable FOREGROUND-FILL)
(gimp-edit-stroke drawable)
(gimp-selection-none image)
(gimp-image-undo-group-end image)
(gimp-displays-flush)
)
)
(script-fu-register "script-fu-colorline"
"Colorline"
"Color as path"
"Harlan Boise"
"(c) Harlan Boise"
"October 16, 2010"
"RGB* GRAY*"
SF-IMAGE"MyImage" 0
SF-DRAWABLE "MyDrawable" 0
)
(script-fu-menu-register "script-fu-colorline" "/Script-Fu/Tutorials")
Can anyone help?
--
Aitchbee (via gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user