Get GIMP version (so scripts can be backwards compatible to 2.6)
I just created this stand alone script so that I can make my scripts work in 2.8 and 2.6. This used to be part of another script I had, so I'm not sure whether or not I needed to do script-fu-register, but it's working for me in 2.8.0 without having that.
There is an example usage in the header, but I'm showing it here, too:
; Example usage:
; ; Determine if GIMP version is greater than 2.6.X
; (set! gimpVersionHigherThan2pt6ptX (isGimpVersionHigherThan2pt6ptX))
Line Nova (GIMP 2.8.0 version) with x and y offset from center added
I just installed GIMP 2.8.0 so I used that script as the baseline, and added my updates to it. I'm also reposting the original one I had posted, in case the new one isn't backwards compatible with 2.6 etc.
A script that will blend a gradient between two paths, so long as each path has the same number of segments.
It registers under Filters->Render->Path Blend.
You have to select two paths (they must be different and have the same number of segments) and one gradient. The order of the paths corresponds to the direction of the gradient (From the first path To the second path.
I had previously created a script-fu to automatically emulate the results of shooting on expired Polaroid 600 instant film that included the undeveloped corners that results from old film stock with not enough developer/fix to completely cover the image area: