Hi,

I've got a bit of a problem with a script that I make fairly extensive use of to create buttons for websites. It started out life as a GIMP-1.1 script and I upgraded it to work with GIMP-2.0 but have recently upgraded again to GIMP-2.2. Unfortunately this has broken the script (right when I need it of curse) and I can't figure out what is wrong.

The offending section is below with a comment above the first line that breaks. According to the PDB gimp-edit-fill requires a drawable and an int32 which I think I am giving it but it just dies with "Procedural database execution failed". Any ideas? If you want to see the full script it is hosted here:

http://www.crazysquirrel.com/software/gimp/aqua_gimp_2_0.scm

If I can fix this I will of course make a new version of the script available.

Many Thanks

-------------------

(if (eqv? shadow TRUE)
(begin
(set! shadow1-layer (car (gimp-layer-new img width-all height-all 1 "Shadow Layer1" 100 SCREEN)))
(set! shadow2-layer (car (gimp-layer-new img width-all height-all 1 "Shadow Layer2" 100 NORMAL)))
(gimp-image-add-layer img shadow2-layer -1)
(gimp-image-add-layer img shadow1-layer -1)
(gimp-drawable-fill shadow2-layer TRANS-IMAGE-FILL)
(gimp-drawable-fill shadow1-layer TRANS-IMAGE-FILL)


(round-select img shiftx shifty width height ratio)
(gimp-selection-shrink img (* height 0.1))
;This is where it breaks first
(gimp-edit-fill shadow1-layer FG-IMAGE-FILL)
(gimp-hue-saturation shadow1-layer 0 0 75 0)
(gimp-selection-grow img (+ 1 (* bluramount 0.3)))
(plug-in-gauss-iir2 1 img shadow1-layer (+ 1 (* bluramount 0.3)) (+ 1 (* bluramount 0.3)))
(gimp-drawable-offset shadow1-layer 0 1 0 (* height 0.4))
(gimp-selection-none img)




(round-select img shiftx shifty width height ratio)
(gimp-edit-fill shadow2-layer FG-IMAGE-FILL)
(gimp-hue-saturation shadow2-layer 0 0 0 -25)
(gimp-selection-grow img (+ 1 (* bluramount 0.3)))
(plug-in-gauss-iir2 1 img shadow2-layer (+ 1 (* bluramount 0.3)) (+ 1 (* bluramount 0.3)))
(gimp-drawable-offset shadow2-layer 0 1 0 (* height 0.4))
(gimp-selection-none img)


    ))

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to