OK, version 1.3. Let's you use the effect on an existing layer (sans reflection). So instead of /File/Create/Pitted-metal... you make active either a text layer, or a normal layer in an existing image and use /Filter/Pitted-metal... The source layer has to have a transparent background as the script selects using alpha to selection and then inverts that selection to work with. Note that a copy of the layer is made to work on non-destructively.
Also small bug fix which was creating a copy of the existing display when working in an existing iamge and a couple of small tweaks, like if seeds are set to zero then random cloud/whirl patterns are used.
I used it to apply the pitted metal effect, without the relection (which isn't working properly with raster text anyway, so you can just delete the reflection layer) to some raster graphics text.
The above effect is a little dark, which is how I wanted this particular sample. I'm not sure why it came out so dark, since the the script does alpha to selection on a copy of the selected layer, instead of creating a text layer and doing alpha to selection on that, after which all processing is the same.
![Image](http://www.gimpchat.com/files/2066_inter-pm.jpg)
Anyway, bar any bug fixes, I've got to where I wanted to get with this tutorial and scripting, so I'm sticking a fork in it.
I must be a little tired, since I just realised that I filled the text graphics with black, rather than a dark brown, hence the darker colour. I guess that within the script I should do alpha to selection on the source layer, invert selection and refill with the FG colour from the parameters, when working with an existing layer. Mañana, maybe.