Skip to content

Script export-layers for GIMP - Filtering layers for export #1

@neirogames

Description

@neirogames

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions