Re: Pixel coordinates input type for script-fu?

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

 



--- "Joao S. O. Bueno Calligaris" <gwidion@xxxxxxxxxx>
wrote:
 
> Hi - no, there is no official way to do that.
> 
> What I do in my scripts is require the user to start
> a Path with the 
> bezier tool before calling the script - The script
> then use the 
> coordiantes of the first (or how many I want) points
> of this path as 
> input coordinates. These can e read through the PDB.
> 
> 	js
> 	-><-


I have thought about doing that and I think that is
the way I will have to go.  I'm confused with how to
extract elements from the vector returned by
gimp-path-get-points.  I thought I understood that
(vector-ref vector k) was the way to pull the k-1
element from the vector, but when I input (vector-ref
'#(1 1 2 3 5 8 13 21) 5) I just get an errobj on
vector-ref.  What do I need to do to be able to
extract a value from the result of
(gimp-path-get-points image path)?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[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