![]() L = gimp.Layer(img, "Real Layer", 1, 1, 0) Gl = gimp.GroupLayer(img, "Group Layer", 1, 1, 0) I add the group layer to the image, and then try to add the normal layer to the image with the group layer as a parent: img = gimp.image_list() I've verified this by making two layers, one a normal layer, and one a group layer. The real problem is that when I insert the newly created GroupLayer, it shows up as a normal layer (no folder in the layer icon). The first thing that really confuses me is that it expects me to specify a height & width for the GroupLayer, even though it should just act as a container for other actual layers (it's expecting this because it inherits from Layer, but that's another matter). Each task requires a different environment and GIMP allows you to customize the view and behavior the way you like it.GIMP features a great fullscreen mode allowing you to not only preview your artwork but also do editing work while using. The only option to enable is adding python to the windows path. GIMP is a free versatile graphics manipulation package. ![]() Gl = gimp.GroupLayer(img, "Should be a folder", 1, 1, 0) The Python in a 64 bit Windows Gimp 2.8.22 is 32 bit, so this example using 32 bit for the screenshots. I've been trying stuff like this: img = gimp.image_list() How do you insert this into the image though and have it show up as a layer group? I eventually found gimp.GroupLayer (PDB lists gimp-layer-group-new) to create a new layer group. The PDB's documentation/naming convention is rather backwards if you're trying to do things with python in gimp and hard to figure out. Ofnuts' Gimp Tools Sundry Gimp scripts, ranging from the utterly useful to the downright frivolous.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |