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

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

 



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.
_______________________________________________
gimp-developer-list mailing list
gimp-developer-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gimp-developer-list


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux