Heed Ofnuts advice, he is the professional. Odd indentations, commas missing or in wrong place and other things will stop your script.
Most plugins/scripts I need have already been done, I am a great believer in not re-inventing the wheel. Occasionally I might configure something for my own use, and not being an expert, I keep a bare-bones script for testing.
You can keep things simple. If you know that parameters do not change, tile size, drawing size, you can put straight in and avoid declaring variables. A Press-and-Go
Nothing clever just to see what works, no error trapping, just a linear process, Offset -> Crop -> Add Guides -> Tile
Attached, might get you started. Unzip, put in your plugins folder, It registers in the tools menu.
It is about time that Gimp had a proper macro system. It is on the list for maybe 10 years time
Most plugins/scripts I need have already been done, I am a great believer in not re-inventing the wheel. Occasionally I might configure something for my own use, and not being an expert, I keep a bare-bones script for testing.
You can keep things simple. If you know that parameters do not change, tile size, drawing size, you can put straight in and avoid declaring variables. A Press-and-Go
Nothing clever just to see what works, no error trapping, just a linear process, Offset -> Crop -> Add Guides -> Tile
Attached, might get you started. Unzip, put in your plugins folder, It registers in the tools menu.
It is about time that Gimp had a proper macro system. It is on the list for maybe 10 years time