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

Scripts and paint tools

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.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Scripts and paint tools Daniel Arbuckle 12 Jan 18:58
Daniel Arbuckle
2005-01-12 18:58:40 UTC (over 19 years ago)

Scripts and paint tools

I'm writing a script which is supposed to convert the alpha channel of a layer into a selection, and then stroke that selection with various paint tools. Easy to do through the GUI, but its turning out to be rather hard to script.

The best I've been able to do so far was convert the selection into a path, get the path points, and use them for input into gimp_smudge, gimp_convolve, etc. Unfortunately, this a) produces somewhat different results and b) sometimes causes python-fu to segfault.

What I'd really like to do is choose the active tool and then call gimp_edit_stroke to stroke it over the selection.

So my question is this: how can I choose the active tool from a script?

Thanks.