Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lighting Effecting plugin
#4
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... Smile
Reply


Messages In This Thread
Lighting Effecting plugin - by QuinB - 10-13-2018, 09:55 PM
RE: Lighting Effecting plugin - by Ofnuts - 10-13-2018, 10:56 PM
RE: Lighting Effecting plugin - by QuinB - 10-14-2018, 07:39 AM
RE: Lighting Effecting plugin - by Ofnuts - 10-14-2018, 08:35 AM

Forum Jump: