Has anyone noticed this? - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions) +---- Thread: Has anyone noticed this? (/Thread-Has-anyone-noticed-this) |
Has anyone noticed this? - trandoductin - 01-14-2025 in GIMP 2.10 When I write plug-in it runs multiple times fine but if I add a (PF_BRUSH, "brushname", "Brush:", 0), as input it only runs first time or I have to go to Filters/Reset All Filters to get plug-in input dialog to show up again. Is that a bug? or is 0 in the line (PF_BRUSH, "brushname", "Brush:", 0), causing this? I tried (PF_BRUSH, "brushname", "Brush:", "Clipboard Image"), and that broke my plug-in altogether RE: Has anyone noticed this? - teapot - 01-15-2025 (Yesterday, 05:40 PM)trandoductin Wrote: in GIMP 2.10 There's an old known issue for this but don't know what the status of it is now, if you scroll to the end I think it says won't be fixed due to gimp 3 making it obselete: https://gitlab.gnome.org/GNOME/gimp/-/issues/6317 With using (PF_BRUSH, "brush", "Brush", None), on a rather out of date 2.10 I get this in the second run: Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 853, in _run res = _interact(proc_name, params[1:]) File "/usr/lib/gimp/2.0/python/gimpfu.py", line 774, in _interact wid = _edit_mapping[pf_type](def_val) File "/usr/lib/gimp/2.0/python/gimpui.py", line 193, in __init__ self.set_brush(default, -1.0, -1, -1) AttributeError: 'BrushSelector' object has no attribute 'set_brush' |