Re: [Gimp-developer] Remote operation for gimp
Daniel wrote: > My question is, is there any alternate way to use the tools other then > the gimptools methods? No, not really. > A way to do the operations but not remember it for undo > until I say would be a possible solution. That's easy, see http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpundo.html I assume gimp is interpolating between the points it gets in order to get the smooth effect, is there a way for the plugin to use this or will I need to do this myself? GIMP does interpolate for paint tools, you can find the code in app/paint/gimpbrushcore.c and elsewhere. This functionality is not currently exported to libgimp; it might be easier to arrange this than to rewrite the code on your own, since it is rather complex. I presume, by the way, that you actually *are* getting all the pointer motion information gdk can provide, i.e., you are using GDK_POINTER_MOTION_MASK in your event mask rather than GDK_POINTER_MOTION_HINT_MASK. Best, -- Bill __ __ __ __ Sent via the CNPRC Email system at primate.ucdavis.edu ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] Remote operation for gimp
Hello, I am working on a plugin to allow another application I'm working on to run gimp instead of the user. The idea is a 3d painter application that can make use of all the gimp tools but through a 3d view instead of the normal 2d texture. I already have implemented enough to use the pencil remotely. My question is, is there any alternate way to use the tools other then the gimptools methods? The problem is I want to see updates as the user does things, and to do that I need to be continuously passing information to the plugin, but because the tools count each call to gimp_pencil for example as an undo able operation undo becomes pretty useless. A way to do the operations but not remember it for undo until I say would be a possible solution. One other thing I noticed is even if I queue all data from the user exactly as inputted I don't get enough input points from gtk to provide smooth lines. I assume gimp is interpolating between the points it gets in order to get the smooth effect, is there a way for the plugin to use this or will I need to do this myself? Thanks Daniel ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer