[Gimp-developer] Pixel coordinates input type for script-fu?
Mark Lowry
vabijou at yahoo.com
Tue May 1 13:05:30 PDT 2007
--- "Joao S. O. Bueno Calligaris" <gwidion at mpc.com.br>
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
More information about the Gimp-developer
mailing list