vortitn.blogg.se

Gimp string
Gimp string










gimp string

This only has a meaning on scripts operating on images that already exist.Īfter these seven parameters have been given, a list of the parameters required by the script follows.

  • List of valid image types for the script.
  • A help string describing the function of the script.
  • The name of the script to be used as a menu entry.
  • The first group of seven parameters must always be given. The parameters of script-fu-register may be divided into two groups. As long as a command is registered in the PDB it can be called by any script or plugin. The last point above actually means that a script is from Gimp’s viewpoint in no way different from a built-in command or a plugin command.
  • Register the script as a command in the PDB.
  • Give the script a name to be used as the menu label.
  • Tell Script-Fu the type of parameters the script takes and give these parameters default values.
  • gimp string

    This is done through the Scheme function script-fu-register. Registering the script with Script-Fu ¶Īfter a function has been written it has to be registered with Script-Fu before it can be used. The different types will be explained below. the Procedure Browser entry for uni-img, which we will define in the example below looks like this:įor the Script-Fu programmer this information shows that uni-img may be called with three parameters of the types INT32, STRING and COLOR.

    gimp string

    Produces a new GIMP image of type RGB and size 100x150.Īll the functions of the PDB may be accessed through the Procedure Browser that is available from the main menu through Xtns ->Procedure Browser….












    Gimp string