Will allow you to quickly create a gradient by sampling color values of an active layer along the active path.
To run the script just have the layer you want to grab colors out of selected and have a path active (some simple path drawn).
The script will divide the path (approximately) into number of segments and sample color values to use for new gradient.
After the script runs, you should have a new gradient created with the name you have specified as input for the script.
Will be available under <Image>/Tools/Create New Gradient Along Path...
Attachment:
2nd version allows STRAIGHT LINE equal distance samplingThis was an idea suggested by PegLeg44. At least that's way i understood him (hopefully I am right).
This is what the options look like for the script.
I said approximately because as you can tell below it's not exact equal distance along the path but it's pretty close.
for a 5 segment gradient
for a 25 segment gradient