Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp 3.0.6 Python plug-in bug with text layer.set_color(color)?
#3
To change the foreground color I consider as a workaround. Though it works I am still interested in the set_color method. As it is a method of the Gimp.TextLayer class I first need a class instance. I don‘t think I can change the order.
Code:
textColor = Gegl.Color.new("red") # e.g.
textLayer = Gimp.TextLayer.new(image, "Text", someFont, sometextSize, Gimp.Unit.pixel())
textLayer.set_name("Text")
textLayer.set_color(textColor)
Reply


Messages In This Thread
RE: Gimp 3.0.6 Python plug-in bug with text layer.set_color(color)? - by Volker - 11-19-2025, 10:09 AM

Forum Jump: