Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script-fu argument/parameter formats
#2
If you are beginning, don't use script-fu as a programming language, but use python. It is simpler, more powerful used for many more things that Gimp scripts. It is a very popular language these days, so you'll find plenty of tutorials/sites (for pure python problems, this forum is quite beginner-friendly).

Here is one of my collections of Python scripts for Gimp. Check the smaller ones that are likely easier to understand. I can and will answer all your questions about them.

Two warnings:

1) use a programmer's editor. This cannot be stressed enough. It will help you get the code right a lot faster, by showing you unbalanced quotes/parentheses and the like, and keeping the code tidy. And unlike the default editors, it won't try to be clever and replace characters (for instance, plain double quotes replaced by open/close quotes). A good free one is notepad++.

2) debugging scripts under Windows can be a bit tricky. Some techniques are described here.
Reply


Messages In This Thread
script-fu argument/parameter formats - by dhugg - 03-13-2018, 01:01 AM
RE: script-fu argument/parameter formats - by Ofnuts - 03-13-2018, 08:28 AM

Forum Jump: