Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > GIMP (GNU Image Manipulation Program) > script-fu loops
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3007 of 3157
Post > Topic >>

script-fu loops

by staci.bennett@[EMAIL PROTECTED] Jun 25, 2008 at 11:31 AM

I'm trying to write a script that contains a loop, but am having
difficulties with the looping construct.  When running the script, I
get the following error: "Error: eval: unbound variable: while"

Things I've tried so far:
- I've created a new script with just a loop to try to isolate the
issue.
- I have downloaded and installed the newest GIMP (2.4.6), running on
Windows XP.
- web search: I did find a reference on the web (http://www.ve3syb.ca/
wiki/doku.php?id=software:sf:updating-scripts) that 'while' loops
should now be 'do' loops, since the incor****ation of TinyScheme.
However, I get the same error when trying to use a do loop.  However,
scripts I've downloaded use while, so perhaps this is an obsolete
comment?
- I downloaded the latest version of the FX Foundry scripts, to see if
they run.  Many of these have while loops in them.  I've tried to run
several, and get various errors -- but none of them related to the
while loop.  Is it possible something is not installed or configured
correctly on my system?

Test script follows:

(define (script-fu-test-while)
(	let* (
		(i 0)
	)
	(while (< i 10)
		(set! i (+ i 1))
	)
))

Any suggestions are greatly appreciated!
Staci
 




 2 Posts in Topic:
script-fu loops
staci.bennett@[EMAIL PROT  2008-06-25 11:31:52 
Re: script-fu loops
staci.bennett@[EMAIL PROT  2008-06-26 08:36:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 17:21:21 CST 2008.