(02-27-2024, 06:02 PM)gimpygirl Wrote: Can you please test the plugin on this file?
Everything works but the guides are not exactly in the center between squares (not everywhere). I don't know why.
Maybe they are slightly different from the first file?
So I try to find out: is it the source file that is a bit different or is the plugin needing other values somewhere?
I'm not 100% if all pictures are exactly the same size (the squares)
I am using the test image
Make a grid
Layer -> Transform -> Offset
Adjust the x and y values. It does depend on which part of the image you check. Maybe put 18 , -31 in the script.
Quote:Could you also give me the exact lline for python-fu-ofn-export-layers please?
I found the paramters but not sure how to do it
With that line I have enough to study! It must be below the guilotine. I don't know if parameter "input image" is "timg" or "tdrawable" (and the other parameters too)
Code:
pdb.python_fu_ofn_export_layers(timg, "C:\\Users\\yourname\\Project", "{numUp0}.png", "-", 0 )
Yes goes below guillotine. 4 space indent.
Quote:If you know a good book (free or not) or website to learn gimp python, I would be interested. Can't find one but this article is nice to start: https://medium.com/@chriziegler/introduc...41b860ad7e
Do you think this book is still representative for modern gimp (it was written for gimp 2.4)? it's old but has overview of everything and a section about plugins and scripts.
https://gimpbook.com/
Gimp Python reference is very sparse. The reference you give is best you will get at the moment. Pecks book is old, big difference between 2.4/2.6 and Gimp 2.10