Sat Jan 04, 2014 11:10 pm
(define (get-all-real-layers image)
(define (get-children group)
(let loop ((children (vector->list (cadr (gimp-item-get-children group))))
(sub-layers '()) )
(if (null? children)
(reverse sub-layers)
(loop (cdr children)
(if (zero? (car (gimp-item-is-group (car children))))
(cons (car children) sub-layers)
(append sub-layers (get-children (car children))) )))))
(let loop ((top-layers (vector->list (cadr (gimp-image-get-layers image))))
(all-layers '()) )
(if (null? top-layers)
all-layers
(loop (cdr top-layers)
(if (zero? (car (gimp-item-is-group (car top-layers))))
(append all-layers (list (car top-layers)))
(append all-layers (get-children (car top-layers)))) ))))
((= listType 0) ;All Layers
(set! layerList (get-all-real-layers image))
Sun Jan 05, 2014 12:28 am
Sun Jan 05, 2014 2:09 am
Sun Jan 05, 2014 2:31 am
Sun Jan 05, 2014 2:33 am
Sun Jan 05, 2014 1:45 pm
ofnuts wrote:Wallace wrote:Is there something that would clear a selection on all layers. If not maybe this could be added.
See clear-layers here : https://sourceforge.net/projects/gimp-t ... s/scripts/
This said there is a limit to this kind of script... either you can only have function without parameters, or you end up redoing parameter entry dialogs for every tool you use. Or you have some clever code that can read the PDB, discovers the parameters and generates a dialog on the fly...
Sun Jan 05, 2014 5:45 pm
Sun Jan 05, 2014 5:52 pm
Sun Jan 05, 2014 6:01 pm
K1TesseraEna wrote:Is Rel3 just a bug fix of Release 1 Graechan?
Because I'm not seeing any added operations.
Sun Jan 05, 2014 6:09 pm
Sun Jan 05, 2014 6:29 pm
Sun Jan 05, 2014 6:42 pm
Rod wrote:If you run the filter on any group it works. That is the fix folks.
Works well Graechan. I can't wait to see more added functions.
Mon Jan 06, 2014 2:01 am
Mon Jan 06, 2014 10:01 pm
Mon Jan 06, 2014 11:05 pm
Rod wrote:Graechan can you add export to any file format supported by GIMP?
Something like the export_layers script?
http://registry.gimp.org/node/28268
SVG, PATTERNS,GIH,GBR,JPG,PNG ect..ect
Tue Jan 07, 2014 3:06 am
This script creates the following new menu entries (modeled after the Tileable Blur provided in Gimp already):
Filters >Distorts >Tileable Emboss
Filters >Blur >Tileable Motion Blur
Filters >Distorts >Tileable Wind
Filters >Light and Shadow >Tileable Sparkle
Filters >Noise >Tileable Slur
Filters >Noise >Tileable Spread
Filters >Artistic >Tileable Cubism
Filters >Artistic >Tileable Oilify
Filters >Artistic >Tileable Photocopy
Filters >Artistic >Tileable Softglow
Tue Jan 07, 2014 4:28 am
I wrote (it did not, of course, support layer groups). I also recall making a later version that copied the active layer's blend mode or opacity to the target layers, but I can't locate the code for that.
Tue Jan 07, 2014 5:15 pm
Tue Jan 07, 2014 6:06 pm
Tue Jan 07, 2014 6:43 pm
MareroQ wrote:Hello Saulgoode.
I have a question:
Is it possible - for all layers (in order):
Alpha to selection -> Selection to path.
It refers to the rapid conversion of ttf font files to svg.