Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Good documentation for python-fu
#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


Messages In This Thread
Good documentation for python-fu - by Spurt - 08-25-2019, 06:58 PM
RE: Good documentation for python-fu - by Ofnuts - 08-25-2019, 07:18 PM
RE: Good documentation for python-fu - by Spurt - 08-26-2019, 05:40 PM

Forum Jump: