Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automate layer movement
#4
Yes, just edit, save, and run. Since you are editing the part where the script describes its parameters to Gimp, you may have to restart GImp to see that chnage take effect (of other code changes, you just save an Gimp will run the new version. Edit with caution, Python is sensitive to line indentation, and some editors like to replace spaces by tabs and this messes u the code. So use a real code editor (Notepad++, UltraEdit,...), and not the Microsoft ones (Notepad, Wordpad...).

To move a layer in the script that would be layer.set_offsets(x,y) (if this is the only layer: image.layers[0].set_offsets(x,y), whee x and y are the new coordinates of the top left corner of the layer.
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: