Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automate layer movement
#9
(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 originally provided. If it is a bit off then do a bit of manual editing as at the beginning.
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 Smile
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 )
Look at the required parameters. Compare with the plugin dialogue. Replace yourname in the above.
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
Reply


Messages In This Thread
automate layer movement - by gimpygirl - 02-27-2024, 01:02 AM
RE: automate layer movement - by Ofnuts - 02-27-2024, 01:15 AM
RE: automate layer movement - by gimpygirl - 02-27-2024, 01:19 AM
RE: automate layer movement - by Ofnuts - 02-27-2024, 09:25 AM
RE: automate layer movement - by rich2005 - 02-27-2024, 05:01 PM
RE: automate layer movement - by gimpygirl - 02-27-2024, 05:19 PM
RE: automate layer movement - by nelo - 02-28-2024, 10:06 AM
RE: automate layer movement - by rich2005 - 02-27-2024, 05:39 PM
RE: automate layer movement - by gimpygirl - 02-27-2024, 06:02 PM
RE: automate layer movement - by rich2005 - 02-27-2024, 08:30 PM
RE: automate layer movement - by gimpygirl - 02-28-2024, 12:32 AM
RE: automate layer movement - by Ofnuts - 02-28-2024, 01:32 AM
RE: automate layer movement - by gimpygirl - 02-28-2024, 05:33 AM
RE: automate layer movement - by Ofnuts - 02-28-2024, 10:11 AM
RE: automate layer movement - by gimpygirl - 02-28-2024, 06:05 PM
RE: automate layer movement - by Ofnuts - 02-29-2024, 12:42 AM
RE: automate layer movement - by gimpygirl - 02-29-2024, 01:09 AM
RE: automate layer movement - by Ofnuts - 02-29-2024, 02:12 PM
RE: automate layer movement - by rich2005 - 02-28-2024, 07:13 PM
RE: automate layer movement - by gimpygirl - 02-29-2024, 12:04 AM

Forum Jump: