Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Request- Make a scriptfu out of my X Window stroke outline hack

Sat Jul 09, 2022 10:33 pm

Linux machines that use the X Window manager have something called xdotool that can record window inputs and replay them. I use this to do the following in Gimp

1. Alpha to select Original Image
2. Make a new layer
3. Name it Effect
4. Move it behind the original
5. Press B for Brush tool

then I press a custom key binding to stroke from selection. You need to set this manually.


Video Footage of it here. I am manually hitting a key to stroke.
https://cdn.discordapp.com/attachments/ ... 232917.mp4


I hope someone makes this into a script fu that way anyone can use it. I've been doing this for a full year.

Re: Request- Make a scriptfu out of my X Window stroke outline hack

Sun Jul 10, 2022 3:07 am

You have a very good occasion here to learn script-fu/python-fu :hehe

- The script can also do the stroking
- Personally I never use "Edit > Stroke selection", because the result is usually jerky. "Select >To path" + "Edit > Stroke path" is a lot cleaner (and if the layer is a text layer, "Alpha to selection" + "Select >To path" should be replaced by "Layer > Text to path".
Post a reply