[Gimp-developer] creating a toolbox with menu items

2009-05-14 Thread Ioan Calin Borcoman
Hi, I have made a python plugin that registers a couple of scripts (I wanted something that does less than 'Make seamless' does; the script is attached for the curious). They scripts appear in the image's menu, but I would like to be able to add them to a toolbox (even better, to the main toolbox

[Gimp-developer] external control of gimp

2009-05-17 Thread Ioan Calin Borcoman
Hi, Is there a way to make some external app send commands to gimp and change the current active image (for example, create a new layer)? I would prefer to do this in python, if possible... Thanx, Ionutz ___ Gimp-developer mailing list Gimp-developer@l

Re: [Gimp-developer] external control of gimp

2009-05-17 Thread Ioan Calin Borcoman
image (for example, a new layer is added, or the visible layer is changed, etc) Thanx. Ionutz On Sun, May 17, 2009 at 5:11 PM, Martin Nordholts wrote: > Ioan Calin Borcoman wrote: >> Hi, >> >> Is there a way to make some external app send commands to gimp and >> change

Re: [Gimp-developer] external control of gimp

2009-05-17 Thread Ioan Calin Borcoman
that sends whatever command the server plugin accepts. The server would take the command and apply it on the current image (or, if there is no way to determine the active image, to gimp.image_list()[0]). Is such a thing possible? Thanx. Ionutz On Sun, May 17, 2009 at 6:34 PM, Martin Nordholts

[Gimp-developer] retrieve info from gimp via script-fu-server

2009-05-18 Thread Ioan Calin Borcoman
Hi, 1. Is it possible to obtain any info from the script-fu-server except 'Success'? For example, if I send '(gimp-image-get-name 1)' for execution to the server, I would expect to receive something like 'foo.xcf' (or 'Untitled', if a new file is opened, for example). Instead of that, I receive on

[Gimp-developer] command output from script-fu-server

2009-05-20 Thread Ioan Calin Borcoman
Hi, I have attached a small patch for script-fu-server that makes the server return to the clients the output of the commands executed, just like the script-fu-console does. Is the patch ok? Any chance to apply it the mainline? Should I make a bug-report and attach the patch to it? Thanx, Ionut

Re: [Gimp-developer] command output from script-fu-server

2009-05-25 Thread Ioan Calin Borcoman
Let's hope it gets applied. I'll make a bug report and attach the patch to it. My code uses something like this to send the data: def send(self, msg): l = len(msg) raw = 'G' + struct.pack('H%ds' % l, socket.htons(l), msg) self.socket.send(raw) To receive the data, I use some

Re: [Gimp-developer] command output from script-fu-server

2009-05-25 Thread Ioan Calin Borcoman
I've filed the bug as 583778 (http://bugzilla.gnome.org/show_bug.cgi?id=583778). Cheers. Ionutz On Mon, May 25, 2009 at 10:15 AM, Ioan Calin Borcoman wrote: > Let's hope it gets applied. I'll make a bug report and attach the patch to it. > > My code uses something li

[Gimp-developer] get notified when gimp closes from a plugin

2009-06-01 Thread Ioan Calin Borcoman
Hi, Is it possible to receive a signal or event in a plugin when gimp closes? I want to create a plugin with a gui window and store some persistent data between gimp restarts. If I close the gui window while gimp is running, all is ok. But if I close gimp while the gui window is shown, the window

[Gimp-developer] gimp sketchbook

2009-06-05 Thread Ioan Calin Borcoman
Hi, I have uploaded to gitorious my small scripts for making gimp easier to use with a Tablet PC, when no keyboard is at hand. Maybe somebody is interested in this. The scripts are rather crude and I'll try to improve them in time, but, for the moment I'm more interested in the results :) The rep

[Gimp-developer] select pencil/paintbrush and undo/redo from a script

2009-06-07 Thread Ioan Calin Borcoman
Hi, My gimpsketchbook app is offering an alternative (extended) interface for gimp via a plugin that acts as a proxy between the gimpsketchbook and gimp. I would like to be able to add buttons for selecting the current active tool (for example, select the pencil or the paintbrush) or to execute u