Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User paintbrush input?
#4
There is no way for a script (or plug-in) to react to gimp events like painting on the canvas.

You can do a script with 2 input layers, one for the layer to segment and one for regions constraints.
The workflow would be:
1. user draws on the regions constraints layer
2. user calls the script with the 2 layers to obtain the result
3. repeat from 1 if not satisfied

Another approach more user friendly:
1. user calls the script with the 2 layers; the dialog window contains a refresh button
2. user draws on the regions constraints layer
3. user clicks the refresh button to see the result ; the script stays alive (its window is not closed)
4. repeat 2 and 3 if not satisfied
5. close the script dialog

This requires to create a custom script dialog (to add the button) and manage the click > update segementation > refresh gimp selection
Reply


Messages In This Thread
User paintbrush input? - by nobl - 07-01-2019, 08:55 PM
RE: User paintbrush input? - by Ofnuts - 07-01-2019, 09:10 PM
RE: User paintbrush input? - by nobl - 07-01-2019, 11:29 PM
RE: User paintbrush input? - by tmanni - 07-02-2019, 08:47 AM
RE: User paintbrush input? - by nobl - 07-02-2019, 04:56 PM

Forum Jump: