RSS/Atom feed Twitter
Site is read-only, email is disabled

external control of gimp

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

external control of gimp Ioan Calin Borcoman 17 May 16:06
  external control of gimp Martin Nordholts 17 May 16:10
   external control of gimp Ioan Calin Borcoman 17 May 16:42
    external control of gimp Martin Nordholts 17 May 17:33
     external control of gimp Ioan Calin Borcoman 17 May 20:18
      external control of gimp Sven Neumann 17 May 23:34
Ioan Calin Borcoman
2009-05-17 16:06:12 UTC (over 15 years ago)

external control of gimp

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

Martin Nordholts
2009-05-17 16:10:53 UTC (over 15 years ago)

external control of gimp

Ioan Calin Borcoman wrote:

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...

Hi, could you elaborate on what exactly you want to achieve? What makes a normal plug-in in Python not enough?

/ Martin

Ioan Calin Borcoman
2009-05-17 16:42:49 UTC (over 15 years ago)

external control of gimp

Hi,

I would like to create a toolbox with some command buttons that act on the current image. I was able to put those commands in the image's menu, but I would like to have them always visible.

For some reason, detaching the menu doesn't work. And even if it worked, an image button takes less space.

I am using a tablet pc and I want access to those commands when the keyboard is not accessible, therefore shortcuts are not a good option, either.

To recap, this is what I want:

1. a window with a bunch of buttons 2. pressing a button produces some modification to the current 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 the current active image (for example, create a new layer)? I would prefer to do this in python, if possible...

Hi, could you elaborate on what exactly you want to achieve? What makes a normal plug-in in Python not enough?

 / Martin

Martin Nordholts
2009-05-17 17:33:10 UTC (over 15 years ago)

external control of gimp

Ioan Calin Borcoman wrote:

For some reason, detaching the menu doesn't work. And even if it worked, an image button takes less space.

The menus should become detachable if you bring them up the menu by right-clicking on the canvas

There was some discussion about having a toolbar-like dockable with configurable buttons, but that never landed anywhere iirc.

/ Martin

Ioan Calin Borcoman
2009-05-17 20:18:06 UTC (over 15 years ago)

external control of gimp

Cool. I didn't know about this right-click trick. It's working great and it's a good start. Is there a possibility to make the detached menu permanent? I've restarted gimp and the menu was gone.

As I said, I want to streamline my work with gimp while in tablet mode. I was thinking to have a very thin window that fully expands into a toolbox when the mouse enters it. The window would contain my buttons and it would shrink once the mouse leaves it. It would also be a top window, so it would stay above the canvas. The window manager would always display this window on the edge of the screen (this behaviour is very similar with that of the input panel from vista - http://www.wacom.com/vista/tablet_input.php).

I was thinking of trying a client-server system for this. The gimp would start a server when it loads the plugins and the button window would be a separate app 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 wrote:

Ioan Calin Borcoman wrote:

For some reason, detaching the menu doesn't work. And even if it worked, an image button takes less space.

The menus should become detachable if you bring them up the menu by right-clicking on the canvas

There was some discussion about having a toolbar-like dockable with configurable buttons, but that never landed anywhere iirc.

 / Martin

Sven Neumann
2009-05-17 23:34:41 UTC (over 15 years ago)

external control of gimp

Hi,

On Sun, 2009-05-17 at 21:18 +0300, Ioan Calin Borcoman wrote:

I was thinking of trying a client-server system for this. The gimp would start a server when it loads the plugins and the button window would be a separate app 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?

Sure, have a look at the script-fu-server plug-in. It's sole purpose is to illustrate how you can have a plug-in running in GIMP that exports the PDB functionality to other processes over whatever protocol you'd like to use.

Sven