Gimp script is a modification of that allows to add multiple items in the same row indicate the number of columns, it helps to create interfaces more compact by grouping elements in rows. To display multiple objects in the same row we add a parameter to the interface element of our script, in we declare:
(PF_OPTION, "anX", "Anchor X:", 1, ("left","center","right")),
With we add:
(PF_OPTION, "anX", "Anchor X:", 1, ("left","center","right")
  # add this array:
Where ‘cols’ is the number of columns you want to occupy and ‘newLine’ is 0 to indicate that the next item is on the same row or 1 to create a new row. The scripts using scriptfu2 are compatible with scriptfu, the extra array is ignored. No need to add {‘cols’: X, ‘newLine’:X} to all items, if not declared for an element that element is created in a new row occupying all columns of the table.

Installation Copy this script in the same directory where you put the script you use or whatever is in the path of Gimp scripts.


2 thoughts on “Gimp script

  1. If your gui is getting complex enough that it looks like your screenshot of gimpfu2 on the registry, you really should consider using PyGTK directly, to build the GUI yourself. It’s faster and much more flexible. Especially it allows you to do advanced things like pop up subwindows, fold away content inside an Expander, etc.

    • Hi, i know pygtk, the interface of some of my plugins are created directly with pygtk, gimpfu2 is only a actualization of gimpfu that adds the posibility of get more tan one gtk object in a row, the screenshot shows the differences of the plugin followpath using gimpfu and gimpfu2, joining related inputs in the same row makes the interface more compact

Leave a Reply

Your email address will not be published. Required fields are marked *