Create one Gimp script to export layers

Job ID: 31452491

Budget: $10 – $30 USD

I need to do one gimp optimization. I have one gimp file setup like this: one layer have the mask witch is always visible and I have several other layers that are hidden. What I want on the script is that the script go inside the gimp file and loop over each hidden layer doing the follow: make the layer visible and export the image inside a folder with the hidden layer name. then hide that layer and go over the other ones doing the same. This way we will export all hidden layers with the mask. I will attach a sample gimp file so you have an idea.
Related categories: GIMP