Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 690981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:29:33+00:00 2026-05-14T02:29:33+00:00

I am frustrated with string-to-number and number-to-string conversion in GIMP scripting. I am runnning

  • 0

I am frustrated with string-to-number and number-to-string conversion in GIMP scripting. I am runnning GIMP 2.6.8 in Windows Vista.

I understand that GIMP’s internal Scheme implementation changes over the versions and I can’t seem to nail down the documentation. From what I can gather GIMP’s Scheme is a subset of TinyScheme and/or supports the R5RS standard procedures. In any case, I usually just look in the packaged script directory for examples when I want to try something new, because that should work for sure, right?

For example, grid-system.scm comes with the latest GIMP release and has the expression,

(string-append (number->string obj) " ")

which is exactly what I want. However, if I use number->string in my own script, or even type it into GIMP’s script console (which is how I usually test out new stuff I want to do) it tells me number->string is an unbound variable:

> (number->string 3)

Error: eval: unbound variable: number->string

Other standard procedures from, say R5RS, work just fine:

> (string-append "frust" "rated")

"frustrated"

So,

1) Is there some lurking documentation for current GIMP Scheme scripting other than something drastic like searching GIMP’s source code?

2) Can I use the GIMP console to spit out a list of all defined procedures to find something I need?

3) Anyone else confirm that number->string is not defined for the current Windows build, even though it appears in the packaged scripts? My web searches haven’t turned up any related problems, and a complete uninstall of all GIMP versions, back to latest puts me in the same scrape.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:29:33+00:00Added an answer on May 14, 2026 at 2:29 am

    You can rebind variables and monkeypatch top level standard library functions in Scheme, but I don’t think you can unbind top level variables. Maybe there is some library file that isn’t loading right.

    My TinyScheme in GIMP 2.6.8 on OS X executes number->string just fine.

    number->string is defined in share/gimp/2.0/scripts/script-fu.init as

    (define (number->string n) (anyatom->string n number?))
    

    so you could just run that code to rebind the variable. Or maybe you could reload script-fu.init

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im getting frustrated because of OpenDNS and other services (ie: roadrunner) that now always
I´m a little bit frustrated with my Java environment that didn´t allow me to
I was looking at this wikipedia article, and couldn't understand how the hell that
I am getting very frustrated because I cannot seem to figure out why Collections
I've been frustrated by this for the entire weekend, plus a day or two,
I'm getting increasingly frustrated with the limitations and verbosity required to actually commit some
I'm getting increasingly frustrated with Flex's Dictionary (which is really just an array with
I've been getting frustrated with some subversion conflicts i've been getting for a long
I'm really frustrated with this one. A few weeks ago I got it working
I've recently become a little frustrated with Django as a whole. It seems like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.