Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[RFC] Summer of code project to re-think plug-in/filter development resources
#10
(06-02-2025, 08:02 PM)Ofnuts Wrote:
Code:
➤> procedure = Gimp.get_pdb().lookup_procedure('gimp-drawable-edit-gradient-fill'); config = procedure.create_config(); config.set_property('drawable', drawable); config.set_property('gradient-type', gradient_type); config.set_property('offset', offset); config.set_property('supersample', supersample); config.set_property('supersample-max-depth', supersample_max_depth); config.set_property('supersample-threshold', supersample_threshold); config.set_property('dither', dither); config.set_property('x1', x1); config.set_property('y1', y1); config.set_property('x2', x2); config.set_property('y2', y2); result = procedure.run(config); success = result.index(0)

also annoying that it outputs wrong code like this:
(GIMP 3.0.4)

config.set_property('drawables', drawables)
instead of
config.set_core_object_array('drawables', [drawable])
Reply


Messages In This Thread
RE: [RFC] Summer of code project to re-think plug-in/filter development resources - by MrsP-from-C - Yesterday, 06:36 AM

Forum Jump: