Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone noticed this?
#2
(Yesterday, 05:40 PM)trandoductin Wrote: 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

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'
Reply


Messages In This Thread
Has anyone noticed this? - by trandoductin - Yesterday, 05:40 PM
RE: Has anyone noticed this? - by teapot - Today, 06:50 AM

Forum Jump: