Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-02 Thread Sven Neumann
Hi, On Tue, 2007-05-01 at 13:35 -0500, Kevin Myers wrote: I really need to get the coordinates directly and on the fly from the plug-in, as in click on button on plug-in's user interface to initiate pixel selection, then click in image (or preview?) to return coordinates to plug-in. You can

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-02 Thread coolhand
You cou use the selection tool and get the selection or use the path tool's initial point, or create a preview window, where you can get events more directly. Other way is to associate a key binding at your plugin that catches the position of your mouse in that moment and then get the pixel

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-02 Thread Mark Lowry
Joao, Thanks for the help. I figured out that aref works to extract a vector element, while vector-ref does not appear to be supported in GIMP. I ended up using a path consisting of 4 points created before running the script to get my input points and things are working nicely now. It's not

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-01 Thread Joao S. O. Bueno Calligaris
On Tuesday 01 May 2007 00:15, Mark Lowry wrote: I'm working on a script in which it would be advantageous to use the mouse to click on an image and have the pixel coordinates captured as an input. Right now I have to manually enter the coordinates for four points, which is a tedious process.

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-01 Thread William Skaggs
From: Mark Lowry [EMAIL PROTECTED] I'm working on a script in which it would be advantageous to use the mouse to click on an image and have the pixel coordinates captured as an input. Right now I have to manually enter the coordinates for four points, which is a tedious process. Is there a

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-01 Thread Kevin Myers
: Tuesday, May 01, 2007 11:52 Subject: Re: [Gimp-developer] Pixel coordinates input type for script-fu? From: Mark Lowry [EMAIL PROTECTED] I'm working on a script in which it would be advantageous to use the mouse to click on an image and have the pixel coordinates captured as an input. Right now

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-01 Thread Mark Lowry
--- Joao S. O. Bueno Calligaris [EMAIL PROTECTED] 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)

Re: [Gimp-developer] Pixel coordinates input type for script-fu?

2007-05-01 Thread Joao S. O. Bueno Calligaris
On Tuesday 01 May 2007 17:05, Mark Lowry wrote: --- Joao S. O. Bueno Calligaris [EMAIL PROTECTED] 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