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

stdout from lisp

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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

stdout from lisp saulgoode@brickfilms.com 09 Apr 18:34
  stdout from lisp Kovacs Baldvin 10 Apr 14:29
  stdout from lisp Kevin Cozens 10 Apr 18:30
saulgoode@brickfilms.com
2006-04-09 18:34:44 UTC (over 18 years ago)

stdout from lisp

Kovacs,

Output from Script-fu can be sent to "stdout" by first performing a:

(gimp-message-set-handler 1)

and then sending your strings using something like

(gimp-message "foobar")

where "foobar" is the string to printed on "stdout".

Perhaps this will be sufficient for your needs?

Kovacs Baldvin
2006-04-10 14:29:12 UTC (over 18 years ago)

stdout from lisp

On Sun, Apr 09, 2006 at 09:34 -0700, saulgoode@brickfilms.com wrote:

Kovacs,

Output from Script-fu can be sent to "stdout" by first performing a:

(gimp-message-set-handler 1)

and then sending your strings using something like

(gimp-message "foobar")

where "foobar" is the string to printed on "stdout".

Perhaps this will be sufficient for your needs?

Yes, definitely! Thank you very much!

(P.s.: as a "keep it stupid and simple" fan I'd probably arrange things in a way that the default print methods of siod do print to stdout. But anyways, what I really needed is just any method to print, so I'll do with what you showed.).

Thanks, Baldvin

Kevin Cozens
2006-04-10 18:30:28 UTC (over 18 years ago)

stdout from lisp

saulgoode@brickfilms.com wrote:

Output from Script-fu can be sent to "stdout" by first performing a:

(gimp-message-set-handler 1)

The Procedure Browser shows that the arguments '1' has an equivalent (C style) name of GIMP_CONSOLE. In Script-Fu you remove the leading GIMP_ from named constants shown in the Procedure Browser and change any remaining _ to -. That would mean you could use

(gimp-message-set-handler CONSOLE)

which has the extra benefit of being more readable. You don't have to go back to the procedure browser to find out what the 1 means.

Just a suggestion to use the named constants where available to make the scripts a little more readable, save some trips back to the procedure browser which should make any needed debugging a little less tedious.