Quoting Kevin Cozens :
>
> > Your code has "(if (= inSmooth TRUE) 1 0)"
> where in Smooth is a boolean value
> > provided by the SF-TOGGLE. The "=" operator
> is for use when
> > comparing numbers,
> > not booleans. Since inSmooth is a boolean, change your
> if statement to read
> > (if
Quoting saulgo...@flashingtwelve.brickfilms.com:
This is as I
> would expect because SF-TOGGLEs are marshalled as integer constants in
> the PDB interface, not booleans (correct me if I am mistaken).
In the above, "constants" should be corrected to "variables".
Quoting Kevin Cozens :
> Your code has "(if (= inSmooth TRUE) 1 0)" where in Smooth is a boolean value
> provided by the SF-TOGGLE. The "=" operator is for use when
> comparing numbers,
> not booleans. Since inSmooth is a boolean, change your if statement to read
> (if inSmooth 1 0)
I am
> Message: 6
> Date: Sat, 13 Dec 2008 13:58:16 -0500
> From: Kevin Cozens
> Subject: Re: [Gimp-user] Error while executing script
> (Script Stop
> Working in Windows 2.6.3)
> To: gimp-user
> Message-ID: <494405c8.9040...@ve3syb.ca>
> Content-Type: tex
D.Jones (aka) Capnhud wrote:
> (colors (+ segments (if (= inSmooth TRUE) 1 0)))
[snip]
> (while (< counter segments)
> (gimp-gradient-segment-set-left-color theGradient counter (car
> (gimp-image-pick-color img inLayer counter 0 FALSE FALSE 0)) 100)
> (gimp-g
I had been using a script that worked fine in gimp 2.4, but when I tried to
recently use this script in Windows 2.6.3 I got the following error:
http://my.opera.com/capnhud/albums/showpic.dml?album=309313&picture=8928433
The script that I was using is this:
; Script to create a gradient from