2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!
As near as I can tell, there are two things preventing the script from running on GIMP 2.4. First, there is no PDB function to copy a path. This is easily rectified if you add the following block of code to the beginning of the script:
(unless (symbol-bound? 'gimp-vectors-copy)
(define (gimp-vectors-copy orig-path)
(let* ((image (car (gimp-vectors-get-image orig-path)))
(path (car (gimp-vectors-new image
(car (gimp-vectors-get-name orig-path)))))
(strokes (vector->list (cadr (gimp-vectors-get-strokes orig-path))))
(stroke-info nil))
(while (pair? strokes)
(set! stroke-info (gimp-vectors-stroke-get-points orig-path (car strokes)))
(gimp-vectors-stroke-new-from-points path
(car stroke-info)
(cadr stroke-info)
(caddr stroke-info)
(cadddr stroke-info))
(set! strokes (cdr strokes)))
(list path))))
The other problem is that the 2.4 PDB does not provide a function to convert a text layer to a path, and it would not be trivial for me to write such a function (I'm not even sure it can be done in Script-fu). However, if you make the above change to the script, you should be able to use the script as long as you manually convert your text layer to a path, activate your envelope path, and then run the script using the "alternate path" option (and setting the alternate path to the saved text path).