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

scm, commandline batch, or console

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

scm, commandline batch, or console hoomalu@aol.com 13 Sep 00:30
  scm, commandline batch, or console hoomalu@aol.com 13 Sep 01:46
hoomalu@aol.com
2005-09-13 00:30:55 UTC (over 18 years ago)

scm, commandline batch, or console

I want to automate the process of: opening many files one at a time, adding a layer from file in the multiply mode and saving it back to the original filename. From what I have read this looks possible but id like some feedback.
(let* ((filelist (cadr (file-glob /temp/*.bmp 1)))) (while filelist
(let* ((filename (car filelist)) (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image)))) (gimp-file-open-as-layer /junk/54.bmp 1) (gimp-layer-set-mode 54 3) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image)) (set! filelist (cdr filelist)))))
does this look possible? gimp-file-open-as-layer in console returns "ERROR: unbound variable (errobj gimp-file-open-as-layer)"
aloha, Eric

hoomalu@aol.com
2005-09-13 01:46:12 UTC (over 18 years ago)

scm, commandline batch, or console

I found this
http://matrix.netsoc.tcd.ie/~horkana/dev/gnome/gimp/script-fu/scripts/junk/layers-new-from-file.scm with a little hacking it should do. Its not junk in my book. Thanks Alan.

-----Original Message-----
From: Hoomalu
To: gimp-user@lists.xcf.berkeley.edu Sent: Mon, 12 Sep 2005 18:30:55 -0400 Subject: scm, commandline batch, or console

I want to automate the process of: opening many files one at a time, adding a layer from file in the multiply mode and saving it back to the original filename. From what I have read this looks possible but id like some feedback.
(let* ((filelist (cadr (file-glob /temp/*.bmp 1)))) (while filelist
(let* ((filename (car filelist)) (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image)))) (gimp-file-open-as-layer /junk/54.bmp 1) (gimp-layer-set-mode 54 3) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image)) (set! filelist (cdr filelist)))))
does this look possible? gimp-file-open-as-layer in console returns "ERROR: unbound variable (errobj gimp-file-open-as-layer)"
aloha, Eric