RSS/Atom feed Twitter
Site is read-only, email is disabled

[Script-fu] How to convert a path to a selection?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

[Script-fu] How to convert a path to a selection? Vio 01 Dec 20:55
Vio
2012-12-01 20:55:29 UTC (almost 12 years ago)

[Script-fu] How to convert a path to a selection?

regarding a question from last 01 Mar 2012, I hit the same wall today. Managed to get a solution working.
Essentially, there is no bug in Gimp, the initial call (of March 1st post) was formulated incorrectly:
you forgot to use the 'car' thingie, hence got a bad data type returned into your variable.
Here's a functioning example (using 'car'):

(define path (car (gimp-image-get-active-vectors img))) ;get vectors from active path
(gimp-vectors-to-selection path 2 TRUE FALSE 0 0) ;make into selection (gimp-selection-invert img) ;manipulate selection ...

Hopefully this helps someone. cheers.