You are here

Glass Selection script

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

; glass-selection.scm
;
; version 1.0 [gimphelp.org]
; last modified/tested by Paul Sherman
; 01/01/2010 on GIMP-2.6.8
; Create Glass Effect of Selection
; based upon glass-text.scm by Scott Mosteller

Download, info and screenshots:
http://www.gimphelp.org/scripts/glass_selection.shtml

AttachmentSize
glass-selection.scm5.38 KB
GIMP Version: 
Code License: 

Comments

The "Glass Selection Dialog" in you link to the screenshot of the dialog box is not the same "Glass Selection Dialog" that I see after the script is installed. The dialog that I have for this script only has two (2) changeable variables, (.ie Glass thickness and shadow displacement).

Is this the correct dialog box that I should be seeing when I use this script? If so, why does you screenshot show a different dialog box with many more changeable variables?

I tried to get this to work in the following batch script but I get errors:

script:
(define (testscript filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-rect-select image 10 10 100 100 REPLACE 0 0)
(set! drawable (car (gimp-image-get-active-layer image)))
(script-fu-glass-selection RUN-NONINTERACTIVE
image drawable '(119 171 234) 3 140 '(0 0 0) 12 12 8 60 TRUE TRUE)
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)))

When calling a scheme script from within scheme, you need to use the actual function, not the pdb function...

so:

(script-fu-glass-selection image drawable glass-color glass-depth glass-trans shadow-color shx shy shb sho dsh flat)

(no NON-INTERACTIVE)

-Rob A>

Subscribe to Comments for "Glass Selection script"