Gimp-Forum.net
Automation to create new buttons: Script,plugin, or macro? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Automation to create new buttons: Script,plugin, or macro? (/Thread-Automation-to-create-new-buttons-Script-plugin-or-macro)



Automation to create new buttons: Script,plugin, or macro? - gimphusker - 02-24-2022

https://turbofuture.com/graphic-design-video/CreateasquareglossybuttoninGIMP28tutorial
I am a mid-newbie when it comes to gimp.
I want to make several of the buttons with the instructions from the link above  in various colors , shapes (Rectangles or squares) with different patterns as needed.  I would like to make the button once in some kind of a script so when I wanted a different pattern or color, I could edit the script with colors and/or patterns and it would create a new button for me.  Or am I making the process too simplistic and it can’t be done.
Please,point me in the right direction.  Thanks!


RE: Automation to create new buttons: Script,plugin, or macro? - Ofnuts - 02-24-2022

(02-24-2022, 04:42 AM)gimphusker Wrote: https://turbofuture.com/graphic-design-video/CreateasquareglossybuttoninGIMP28tutorial
I am a mid-newbie when it comes to gimp.
I want to make several of the buttons with the instructions from the link above  in various colors , shapes (Rectangles or squares) with different patterns as needed.  I would like to make the button once in some kind of a script so when I wanted a different pattern or color, I could edit the script with colors and/or patterns and it would create a new button for me.  Or am I making the process too simplistic and it can’t be done.
Please,point me in the right direction.  Thanks!

Typically you don't edit the script each time you want a change. You create a script that accepts parameters that define things like size, color to use, pattern to use... and tell Gimp about these in the script registration. When you call the script from a Gimp menu Gimp automaticaly builds a dialog with buttons to pick a color (using Gimp's color selector), a pattern (in Gimp's pattern collection), etc...