Thanks for the great script export-layers_R.scm for GIMP (export layers to *.png).
https://github.com/stuartpb/gimp-scripts/blob/master/export-layers.scm
Everything works, but I would like to be able to not export layers to PNG if there is a symbol in the layer name ”-”.
Something like this:
(vector->list (filter
(lambda (str) (not (string-contains str "-")))
(cadr (gimp-image-get-layers img))))
Please, help me correct the this code.
I'm working with C # and I'm not familiar with Lua/ Scheme (Script-Fu)...
It would be nice if I could filter the layers, that is, do not export if the layer name contains a symbol ”-”.
Help correct the code.