Re: [Gimp-developer] [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.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]