Yesterday, 06:36 AM
(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])