Previously, I had developed a small script to take an image and turn it into a GIMP gradient. This was mainly due to my desire to convert some of these tonal gradients into actual GIMP gradients. This script was posted to the gimp-plugin[?] repository by someone else (with my permission) but seems to have been removed.
My work with paths when creating the tapered stroke script got me thinking about making a script that could sample along a path and create a gradient.