![]() Define the function of the script and list its parameters The parameters will be matched with the parameters listed below in script-fu-register. Not very useful, but it shows the essential steps in producing a Script-Fu script. The following script uni.scm receives two parameters from the user, the size of the image and a color, and goes on to produce a uniform image of the requested size and the requested color. Some of the valid types are:Ī string of characters enclosed in double quotes.Īny scalar value, integer, or floating point.Ī label for Script-Fu to display when querying for the parameter. Each parameter is given as a group of three items: 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. ![]() 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. This item is latex free and Non-toxic.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…. You can call it: lanyard string, craft lace, plastic lace, plastic lacing, rexlace, plastic lanyard, plastic lace craft, plastic lacing cord, or britelace. When used as a knotting cord, 1 foot of Rexlace = about 1 inch of stitches/knots. Plastic Lacing has 100 yards (91 meters) per roll. We are your one stop shop for all your lanyard & gimp string crafts. If you need gimp string and lanyard string books and kits we have you covered too! We carry over 60 colors and have cheap bulk wholesale pricing. You can use this plastic lace to make key-chains, lanyard necklaces, gimp bracelets, key fobs, lanyards, earrings, zipper pulls, jewelry, and much more. Plastic Craft Lace Gimp Lanyard String is an extruded flat PVC vinyl plastic cord made for craft and hobby applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |