Hi,
I need a script that changes the opacity of a layer and then saves the whole
image as a PNG file. So I wrote the following script:
#!/bin/sh
gimp -i -b - <<EOF
(
let* ((image (car (gimp-file-load 1 "test.xcf" "test.xcf")))
(drawable (car (gimp-image-get-active-layer 1))))
(gimp-layer-set-opacity drawable 50)
(let* ((new-layer (car (gimp-image-merge-visible-layers image
EXPAND-AS-NECESSARY)))))
(gimp-file-save RUN-NONINTERACTIVE image new-layer "test-40.png"
"test-40.png")
(gimp-quit 0)
)
However, an error message appears saying "error: eval: unbound variable
new-layer".
So what am I doing wrong here?
Thanks for your help!!
Sabine
--
professor (via www.gimpusers.com)
_______________________________________________
Gimp-user mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user