RSS/Atom feed Twitter
Site is read-only, email is disabled

Plugin for copying mouse coordinates to clipboard

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

7 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

Plugin for copying mouse coordinates to clipboard Hugo M 05 Dec 18:13
  Plugin for copying mouse coordinates to clipboard Ofnuts 05 Dec 21:01
   Plugin for copying mouse coordinates to clipboard Kevin Payne 06 Dec 19:57
    Plugin for copying mouse coordinates to clipboard Alexandre Prokoudine 06 Dec 20:40
     Plugin for copying mouse coordinates to clipboard Ofnuts 06 Dec 21:13
      Plugin for copying mouse coordinates to clipboard Alexandre Prokoudine 06 Dec 22:06
       Plugin for copying mouse coordinates to clipboard Kevin Payne 06 Dec 22:19
Hugo M
2015-12-05 18:13:09 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

I need a plugin for copying image coordinates to clipboard when I click a point in an image. This is because I need to manually copy some coordinates of some points in images, but I'd really like to just click a point and then the coordinates are copied into the clipboard. That will really boost my productivity in this task.

If there is no plugin to do something like that, I'd appreciate any clue of how to create that plugin.

Thanks!

Best, Hugo

Ofnuts
2015-12-05 21:01:20 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

On 05/12/15 19:13, Hugo M wrote:

I need a plugin for copying image coordinates to clipboard when I click a point in an image. This is because I need to manually copy some coordinates of some points in images, but I'd really like to just click a point and then the coordinates are copied into the clipboard. That will really boost my productivity in this task.

If there is no plugin to do something like that, I'd appreciate any clue of how to create that plugin.

A completely different way of doing it, but possibly just as efficient: use the path editor, making an anchor on each point for which you want to export the coordinates, then use my path-csv script to export the path (ie, all the points in one go) to a CSV file:

Doc: http://gimp-path-tools.sourceforge.net/tools.shtml#path-csv Download:
http://sourceforge.net/projects/gimp-path-tools/files/scripts/path-csv-0.1.py/download

Kevin Payne
2015-12-06 19:57:46 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

As GIMP's built-in mechanism for picking points (Sample points) is completely unscriptable (WHY ????), I'd imagine creating a new, small layer consisting of some crosshairs, then having the user move that layer to the desired location and using a script to get that location.

Kevin

From: gimp-user-list  on behalf of Ofnuts 
Sent: 05 December 2015 21:01
To: gimp-user-list@gnome.org
Subject: Re: [Gimp-user] Plugin for copying mouse coordinates to clipboard

On 05/12/15 19:13, Hugo M wrote:
> I need a plugin for copying image coordinates to clipboard when I click a
> point in an image. This is because I need to manually copy some coordinates
> of some points in images, but I'd really like to just click a point and
> then the coordinates are copied into the clipboard. That will really boost
> my productivity in this task.
>
> If there is no plugin to do something like that, I'd appreciate any clue of
> how to create that plugin.

A completely different way of doing it, but possibly just as efficient:
use the path editor, making an anchor on each point for which you want
to export the coordinates, then use my path-csv script to export the
path (ie, all the points in one go) to a CSV file:


Doc: http://gimp-path-tools.sourceforge.net/tools.shtml#path-csv
Download:
http://sourceforge.net/projects/gimp-path-tools/files/scripts/path-csv-0.1.py/download
Alexandre Prokoudine
2015-12-06 20:40:21 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

On Sun, Dec 6, 2015 at 10:57 PM, Kevin Payne wrote:

As GIMP's built-in mechanism for picking points (Sample points) is completely unscriptable (WHY ????)

Let's keep our cool, Kevin :)

Sample points are currently limited to just 4 in the UI ("backend" supports more), and there is no PDB API to access them from scripts.

So yes, theoretically it would be entirely possible to make as many sample points as needed, then run a script that would export positions of all sample points to something like CSV. For this to happen, someone will have to:

1) adjust UI to allow for more sample points; 2) write PDB API;
3) write a script to access sample points via PDB API and export their positions.

Volunteers are more than just welcome.

Alex

Ofnuts
2015-12-06 21:13:35 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

On 06/12/15 21:40, Alexandre Prokoudine wrote:

On Sun, Dec 6, 2015 at 10:57 PM, Kevin Payne wrote:

As GIMP's built-in mechanism for picking points (Sample points) is completely unscriptable (WHY ????)

Let's keep our cool, Kevin :)

Sample points are currently limited to just 4 in the UI ("backend" supports more), and there is no PDB API to access them from scripts.

So yes, theoretically it would be entirely possible to make as many sample points as needed, then run a script that would export positions of all sample points to something like CSV. For this to happen, someone will have to:

1) adjust UI to allow for more sample points; 2) write PDB API;
3) write a script to access sample points via PDB API and export their positions.

Volunteers are more than just welcome.

Actually, Kevin is just asking for item #2 :)

Alexandre Prokoudine
2015-12-06 22:06:07 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

On Mon, Dec 7, 2015 at 12:13 AM, Ofnuts wrote:

So yes, theoretically it would be entirely possible to make as many sample points as needed, then run a script that would export positions of all sample points to something like CSV. For this to happen, someone will have to:

1) adjust UI to allow for more sample points; 2) write PDB API;
3) write a script to access sample points via PDB API and export their positions.

Volunteers are more than just welcome.

Actually, Kevin is just asking for item #2 :)

Wouldn't make a huge difference without #1 :)

Alex

Kevin Payne
2015-12-06 22:19:15 UTC (almost 9 years ago)

Plugin for copying mouse coordinates to clipboard

From: gimp-user-list  on behalf of Alexandre Prokoudine 
Sent: 06 December 2015 22:06
Cc: gimp-user-list@gnome.org
Subject: Re: [Gimp-user] Plugin for copying mouse coordinates to clipboard

On Mon, Dec 7, 2015 at 12:13 AM, Ofnuts wrote:

>>> So yes, theoretically it would be entirely possible to make as many
>>> sample points as needed, then run a script that would export positions
>>> of all sample points to something like CSV. For this to happen,
>>> someone will have to:
>>>
>>> 1) adjust UI to allow for more sample points;
>>> 2) write PDB API;
>>> 3) write a script to access sample points via PDB API and export their
>>> positions.
>>>
>>> Volunteers are more than just welcome.
>>
>> Actually, Kevin is just asking for item #2 :)

>Wouldn't make a huge difference without #1 :)

>Alex

My apologies for appearing to be ranting (again)

Ofnuts is right about what I was asking for, and I beg to differ about the number of sample points.

I've raised a bugzilla: 759104 and given a couple of examples of use-cases, which use one and two sample points.

Kevin