This is a little bit more complex than our Hello, World! script, but it shares a very similar structure. (PF_STRING, "customtext", "Text string", 'Scripting is handy!'), Img.resize(layer.width, layer.height, 0, 0) Layer = pdb.gimp_text_fontname(img, None, 0, 0, customtext, 10, True, size, PIXELS, font) Open up the text file once again, and copy and paste the following code: #!/usr/bin/env pythonĭef test_script (customtext, font, size): Now we're going to rewrite our script so that it actually does something practical. Function: the name used to refer to the action in our code (e.g.Results: Results from the plug-in (e.g.Parameters: parameters attached to the plug-in (e.g.Label: the way that the script will be referred to in the menu (e.g.Date: the date the script was created (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |