Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Good documentation for python-fu
#1
Hi. Have search the web from my corner with no luck in finding a full or close to full fledged documentation for Python-fu. So far have found: https://www.gimp.org/docs/python/index.h...l_database and http://www.ve3syb.ca/wiki/doku.php/softw...sf-dirname . The last one is for Script-fu but is very close to Python-fu.

If somone know of a good documentation and feel incline to share i (and probably many other) would be very appreciative.
Reply
#2
Beyond your first link:
  • Filters>Python-Fu>Console>Browse, and use the search bar
  • In the Python console use dir(someObject) to check the available methods. They are usually a self-explanatory parallel of a similar PDB function. Using these methods makes the code more readable IMHO. Many are documented in your first link, but some are not (and work just as well).
Otherwise, as a general rule, where Script-fu takes IDs, Python-fu takes objects, and the non-existing id (-1) can be replaced by None.

Over the years I have tried many things, so my two script collections can be used as examples:
Otherwise you can always ask here Smile
Reply
#3
Wow, i knew extraordinary people existed  Wink Cool 
Thanks for the sharing.
Reply


Forum Jump: