RSS/Atom feed Twitter
Site is read-only, email is disabled

Script-Fu "Illegal Function" Error

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Script-Fu "Illegal Function" Error Aitchbee 28 Oct 13:04
  Script-Fu "Illegal Function" Error Rob Antonishen 28 Oct 13:33
   Script-Fu "Illegal Function" Error Aitchbee 29 Oct 13:44
2010-10-28 13:04:56 UTC (about 14 years ago)
postings
2

Script-Fu "Illegal Function" Error

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?

Rob Antonishen
2010-10-28 13:33:15 UTC (about 14 years ago)

Script-Fu "Illegal Function" Error

Try getting rid of the double parenthesis around the gimp-image-get-active-vectors.

-Rob A>

2010-10-29 13:44:03 UTC (about 14 years ago)
postings
2

Script-Fu "Illegal Function" Error

Try getting rid of the double parenthesis around the gimp-image-get-active-vectors.

-Rob A>

Bingo! You are right. You have my undying gratitude.

I played with this thing so long I don't know how the extra parenthesis got there. This kind of structure is new to me. I first learned programming on punch cards with the MAD (Michigan Algorithm Decoder) and am still line oriented.

This tread is closed.