Re: [Gimp-developer] Script-Fu

2004-07-02 Thread Jonathan Bartlett
 (define (blur-file) (set! return blur.png))

 but that would not (really?) allow constructs like:

 file_for_blur: blur.png
 file_for_blur: blur_changed_my_mind_use_this_instead_but_keep_other_too.png
 file_for_blur: use_yet_another.png

You mean like (define blur-file blur.png)?

 Moreover, does there exist reference documentation for basic Gimp-Scheme
 things (tutorials aside), like string-append etc.? Some standard
 Lisp-functions don't seem to be implemented (nth for example) Should I add
 some? Which ones?

I think it's mostly R4RS with some stuff missing.  I've _never_ found
definitive documentation on GIMP-scheme.

Jon

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Script-Fu

2004-07-02 Thread Jonathan Bartlett
 (define blur-file blur.png)
 (define blur-file otherblur.png)

 Different versions of Scheme handle this differently. I do not know if this is
 proper Gimp-scheme (re-defining a defined variable), or if one would have to
 use set! for the second definition/assignment. Incidently, no script-fu seems
 to make use of global variables, only of local let* - environments.

 Perhaps (define ...) is equivalent to (set! ...) here?

I don't know officially, but it seems that with any definition of
define, you can define it first, and then set! it everywhere else.  Even
if your first define is

(define blur-file '())

Jon

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Gimp interface streamlining

2003-09-06 Thread Jonathan Bartlett
 I already explained most of my suggestions to Joao.
 I did another design, available at
 http://www.zeitgeistmedia.net/gimp/gimpstreamline2.png

that's REALLY nice looking, and I like it, not that my opinion counts for
much :)

Jon

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] Scale Constrained

2003-09-06 Thread Jonathan Bartlett
I wrote a small but useful script that will scale an image to best fit
within a constrained size without affecting aspect ratio.  It's a simple
script, but I've found it quite useful as a component for other scripts,
and thought it might be useful in GIMP at large.  It's scheme right now,
but I could code it in C if you would like:

http://www.eskimo.com/~johnnyb/computers/multimedia/

Also on that page is a templated images script, which is really, REALLY
basic at the moment, but basically allows you to easily create image-based
templates (think Print Shop).  Anyway, eventually I'm going to make this
into something which has the ability to intelligently search for pictures
to plug in, a better UI, and a UI for creating templates.  However, if
someone else was interested it might go a bit faster :)  I thought this
would be useful enough that some of the developer community might want to
be involved, so I posted here.

Anyway, let me know.

Jon


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer