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

Getting all single bounds of multiple selections

This discussion is connected to the gimp-developer-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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Getting all single bounds of multiple selections Eckhard M." Jäger 23 Jul 10:15
  Getting all single bounds of multiple selections Sven Neumann 24 Jul 21:21
Eckhard M." Jäger
2008-07-23 10:15:34 UTC (over 16 years ago)

Getting all single bounds of multiple selections

Hello,

i'm thinking about a better slicing plugin based on a addition layer with color informations.
I'd like to create the plugin with Python, but i'm not sure if it is possible getting all single bounds
when you have multiple selection.

Is it possible? The function active_layer.mask_bounds gives only the overall bounds back :(

Thanks.

___/\________________________

Sven Neumann
2008-07-24 21:21:02 UTC (over 16 years ago)

Getting all single bounds of multiple selections

Hi,

On Wed, 2008-07-23 at 10:15 +0200, Eckhard M. Jäger wrote:

I'd like to create the plugin with Python, but i'm not sure if it is possible getting all single bounds
when you have multiple selection.

There is only one selection per image. Please realize that the selection is a grayscale mask. So what you call "multiple selections" are several disconnected areas on the selection mask.

Note that you can access the selection mask as a drawable. That should give you all the information you need.

Sven