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

retrieve info from gimp via script-fu-server

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

retrieve info from gimp via script-fu-server Ioan Calin Borcoman 18 May 15:40
  retrieve info from gimp via script-fu-server Sven Neumann 19 May 07:36
Ioan Calin Borcoman
2009-05-18 15:40:53 UTC (over 15 years ago)

retrieve info from gimp via script-fu-server

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 only 'Success'. Any ideas on what is missing?

2. Is it possible to have script-fu-server started automatically when gimp starts? How?

Thanx,

Ionutz

Sven Neumann
2009-05-19 07:36:57 UTC (over 15 years ago)

retrieve info from gimp via script-fu-server

On Mon, 2009-05-18 at 16:40 +0300, Ioan Calin Borcoman wrote:

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 only 'Success'. Any ideas on what is missing?

2. Is it possible to have script-fu-server started automatically when gimp starts? How?

As I already said, script-fu-server is nothing but a code example to show you how a plug-in can export the PDB functionality. If you actually need such an interface, I suggest that you start from scratch after having understood how script-fu-server works.

If I would be in the need to control GIMP from outside, I'd write an extension that exports the PDB over D-Bus. That should be relatively easy and it would be useful enough that we should consider to include it instead of the script-fu-server code, which is pretty much useless except as an example.

Sven