It is currently Fri Jun 28, 2024 11:31 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Downloadable plugin writing tutorials
PostPosted: Sun Nov 24, 2019 7:25 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7315
Location: Göteborg at last!
Are there any downloadable pdf plugin/script writing tutorials? I want to learn but I need to be able to work offline.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Mon Nov 25, 2019 7:53 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
Nothing really applicable to your readable tutorials

but there are the Jackson Bates tutorials

https://jacksonbates.wordpress.com/pyth ... ial-pages/

They are video but have reasonable documentation. I once dumped the text as pdf's Have a look see what you think.

There are also sample scripts https://gist.github.com/JacksonBates


Attachments:
jackson-bates-python-pdf.zip [1.57 MiB]
Downloaded 189 times

_________________
Image
Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 2:17 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7315
Location: Göteborg at last!
Thanks rich. Don't know when I'll get started but hopefully soon.


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 4:48 am  (#4) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
I find the problem is, the examples like the Bates series, all very simple, gets you writing some one-liners. Then nothing that I have found at an intermediate level. Maybe someone has some links.
Many years ago as students we got FORTRAN, then when home computers became affordable, did a bit of BASIC, so I do have a grasp of fundamentals (but not enough)
The other problem I have, is, everything I require has already been done, no need to re-invent the wheel ;)

_________________
Image


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 10:14 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4751
rich2005 wrote:
I find the problem is, the examples like the Bates series, all very simple, gets you writing some one-liners. Then nothing that I have found at an intermediate level. Maybe someone has some links.

IMHO, once you can write working registration code, the intermediate level is knowing your Python and the Gimp API, which is done through experimenting, and reading other people's code. Beware of tutorials because they will make you repeat things that you don't understand. For a reasonably in-depth but enjoyable understanding of Python, look up the talks by Ned Batchelder on YT.

rich2005 wrote:
Many years ago as students we got FORTRAN, then when home computers became affordable, did a bit of BASIC, so I do have a grasp of fundamentals (but not enough). The other problem I have, is, everything I require has already been done, no need to re-invent the wheel ;)

You can re-invent a better wheel :) Another way it to look at an API and wonder how you can build a useful script around it.

And python is quite easy to learn, your clumsy beginner code will work, and you'll learn the better ways later(*).

(*) There is always a better way. Even after your 4th iteration, when you think you have found the best way, you find an even better way. I have scripts out there where the functionality has increased 4x while the total code size has remained roughly the same.

_________________
Image


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 11:26 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 866
Having just started trying to write GIMP Python scripts, I find that the language is not dissimilar to many others. However, the greatest difficulty I have had is understanding those things that are peculiar to GIMP.
The precise descriptions in the Python-Fu Console I am certain will be easily understood by those who already know the answers!

david.


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 5:03 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4751
You have of course read this: http://www.gimp.org/docs/python/index.html

_________________
Image


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Wed Nov 27, 2019 6:01 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Nov 15, 2014
Posts: 866
Read many times! But again written by someone who is already familiar and it is always the smallest details that give problems to the beginner.

david.


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Thu Nov 28, 2019 3:56 am  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4751
Very readable if you know Python. Of course if you try to learn Python and the Gimp API at the same time it is a bit harder, in particular because the Gimp API is not very Pythonesque, it is just a facade on the Scheme API which itself is pretty much another facade on the C API.

OTOH you have the Python console where you can try things easily. Don't be shy. The wonderful thing with programming is that experimentation is quick and free. The only language I learned from a teacher was Fortran. Since then I have used nearly 40 other programming languages, and most of them without even a book, just by reading existing code and trying things. If you want a book, try the smallest one. The basics of Python fit a 100-page book.

_________________
Image


Top
 Post subject: Re: Downloadable plugin writing tutorials
PostPosted: Fri Nov 29, 2019 7:34 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
ofnuts wrote:
Very readable if you know Python. Of course if you try to learn Python and the Gimp API at the same time it is a bit harder.

Something I realized earlier. Hopped straight in the Gimpython wagon for the main feed. But no matter how much I stretched the jaw, it was too much to swallow.
Now I'm going through the "Automate the Boring Stuff with Python" course and feel inspired.
Which is important because then the information sticks in the memory.


Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts downloadable GIMP help for 2.10.x? 2.10 crashes, main page has 2.8

1

No new posts Attachment(s) Writing in the sand tutorial

23

No new posts Attachment(s) SAND WRITING TUTORIAL

5

No new posts Attachment(s) WRITING A TEXT IN THE FRONT AROUND AN OBJECT

14

No new posts Chat GP for writing plugins/scripts?

3



* Login  



Powered by phpBB3 © phpBB Group