Requested by Wallace here.
This plug-in will allow you to turn all layers (invisible/visible or linked/unlinked)
to apply apply Color to Alpha to them.
If layers current do not have alpha channel, it'll be added.
Yesterday...all my scripts were swiftly swept away...oh I believe in...gimp oh yay.
Wouldn't have posted this,
but...yesterday. I actually made a "dramatic" decision to finally dump all the .scm scripts. Some coders have been saying it for a long time, that scm is deprecated format and I see only python plugins being created anymore.
But these were in my 2.8 storage folder, made by fencepost around 2009.
I would keep your old script-fu's
Put them in an archive "just-in-case". One thing that is still possible with script-fu that python is not able, is load on-the-fly.
Using Ofnuts resource mangaer, this my "might need sometime" collection and look at that, a C2A for all layers, no need to reinvent the wheel. Although to be fair, it is old and maybe not as comprehensive as tin's
Yeah that's actually better just-in-case, decided to zip em after all, when I woke up with a sober human head. I just want to get cleaner interface and there were so many old scripts that have either exactly same function or work similarly than the newer python plug-ins.
Oh you've put all the resource manager entries in same place, that's neato.
The line you're looking at is the parameter definition for plug-in not code that runs color to alpha
the code line that runs color to alpha is
but there seems to be no way to set opacity threshold as the call doesn't have anything related to that.