[Gimp-user] Script-Fu "Illegal Function" Error

2010-10-29 Thread Aitchbee
>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.

-- 
Aitchbee (via gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Script-Fu "Illegal Function" Error

2010-10-28 Thread Rob Antonishen
Try getting rid of the double parenthesis around the
gimp-image-get-active-vectors.

-Rob A>
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Script-Fu "Illegal Function" Error

2010-10-28 Thread Aitchbee
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