Re: [Gimp-developer] How to change the active current tool from aplugin?
From: "Laurent gauvrit" <[EMAIL PROTECTED]> >That I told I try to design an edge detection plugin. This plugin helps the >user to select an objet on a picture. [ . . . ] Hi Laurent, In the GIMP architecture, things that require the user to interact directly with an image, by painting or any other use of the mouse, must be implemented as tools (in the core) instead of plug-ins. You could look at the code for the new Foreground Select tool, which seems to have some things in common with the tool you are trying to create. There has been some talk of pluggable tools, but this is currently an idea for the future. Best wishes, -- Bill __ __ __ __ Sent via the CNPRC Email system at primate.ucdavis.edu ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] How to change the active current tool from aplugin?
Sven you look like a hardworker, thank you so much for answer so quikly! That I told I try to design an edge detection plugin. This plugin helps the user to select an objet on a picture. In first the user select one algorithm (like Sobel for example), next the plugin will create 3 layers: -a copy of the picture to enable the user to fill gaps that block the edge detection -a white picture where the result of the algorithme appears -a flag layer where the user can draw "in" area and "out" area the most is done, only the flag must be finish. I would provide flag 's buttons in my plugin that: -select automaticly the flag layer (ok no problem) -active the paint brush tool (the problem!) -select apropriate color(green for "in" area and red for "ou" area)(an another problem) if you have any secrets gimps tips for help me it'll be wellcome _ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer