Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu Image Creation - Slight Issues
#2

  1. You register the plugin as taking width, height parameters, but then attach it to a function that takes image, layer, width, height (where image, layer are not used). I'm even surprised that it works at all.
  2. See pdb.gimp_drawable_fill(drawable, fill_type); The doc says: "Its main purpose is to fill a newly created drawable before adding it to the image." (which implies that creates layers aren't filled, Black shows up because under the hood it's all zeroes.

PS: Using LAYER_MODE_NORMAL is much better than 28.
Reply


Messages In This Thread
RE: Python Fu Image Creation - Slight Issues - by Ofnuts - 12-31-2022, 03:33 PM

Forum Jump: