10-14-2018, 08:35 AM
A good deal of the Python API is just a facade on the Script-fu one. But there is one change that was made to make things immensely easier in Python, instead of passing object IDs, you pass objects(*). For instance the "bumpmap" and "envmap" parameters are of type gimp.Drawable, not integers (the API extracts the ID from the object). So of course if there is no object you don't use 0, you use None.
(*) there are, of course ,a few exceptions to this...
(*) there are, of course ,a few exceptions to this...