Oregonian wrote:
I have a script that counts the anchors in a path. It was written by fencepost.
Right-clicking the path layer shows Path Details and that is supposed to give me the info I want but clicking it just gives me a path details dialog that doesn't tell me what I want to know. Clicking OK gives me an error message and I expect that the script was written for gimp2.4 and needs to be updated for 2.6
The script is not outdated; it just makes some assumptions about paths that are not necessarily true.
For example, in the procedure 'fp-script-fu-vector-details' the following lines appear:
(if (> stroke-id (car (gimp-vectors-get-strokes vectors)))
(gimp-message "That stroke does not exist in the selected path.")
(begin
This assumes that all stroke-ids are sequential, starting from "1".
Such may not be the case if any anchors or strokes have been deleted from the path. A better test (if I understand the script correctly) would be:
(if (not (member stroke-id (vector->list (cadr (gimp-vectors-get-strokes vectors)))))
(gimp-message "That stroke does not exist in the selected path.")
(begin