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

Applying transform2d to selection

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.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Applying transform2d to selection Ofnuts 15 May 17:30
Ofnuts
2011-05-15 17:30:16 UTC (almost 14 years ago)

Applying transform2d to selection

I want to perform geometric transforms on the selection in a script.

First I thought I would find a specific procedure for that (the "manual" transforms can act on selections as well as on layers and paths) but I didn't find any. Then I figured out that the selection was a drawable so I could use the procedure for drawables. Unfortunately this procedure produces a floating selection (even when working on the selection itsef) and I can't get a transformed selection from that.

As far as my tests go, I can also use it on channels, so I started looking into something like:
- save selection to channel
- apply transform to channel (the result appears as a floating selection in the Layers dialog)
- merge down the result... and it is added to the saved selection channel! So I would have to clear that channel before merging down?

At that points things look a bit too complicated and I doubt I'm doing it the right way... So what is the trick?