Hi Zach!
As a tip, to get smother strokes in your script, convert the selections to paths then stroke those.
For example, if you change this bit in your script:
Code:
(gimp-edit-stroke theLayer)
to be:
Code:
(plug-in-sel2path RUN-NONINTERACTIVE theImage theLayer)
(gimp-selection-none theImage)
(gimp-edit-stroke-vectors theLayer (vector-ref (cadr (gimp-image-get-vectors theImage)) 0))
(gimp-image-remove-vectors theImage (vector-ref (cadr (gimp-image-get-vectors theImage)) 0))
You will end up with smoother contour lines.
Here is an example (the stroked selection on the left half, the stroked path on the right half):
stroke.png
You could also go crazy and use the plug-in-sel2path-advanced command that lets you specify corner thresholds, align thresholds, and all other kinds of path tracing voodoo, but that could be overkill
-Rob A>