GIMP Chat
http://gimpchat.com/

The return of 'Error: ( : 1) atom->string: needs 1 argument(s)'
http://gimpchat.com/viewtopic.php?f=9&t=16675
Page 1 of 1

Author:  Skinnyhouse [ Tue Jul 17, 2018 2:09 am ]
Post subject:  The return of 'Error: ( : 1) atom->string: needs 1 argument(s)'

Now I know where I had seen this error from the earlier thread:

viewtopic.php?f=9&t=16486

It was when trying to create a new paint brush with Edit>>Paste as>>New brush...

Attachment:
error_paste_as_brush.jpg
error_paste_as_brush.jpg [ 45.78 KiB | Viewed 1021 times ]


This may have been present in the Windows (64 bit) versions of 2.10 from the beginning - currently using 2.10.4.

My fix (until they update script-fu) is to take a copy of the 'paste-as-brush' script from the gimp scripts folder and add a new line to define the number to string conversion before saving it to my user Scripts folder (taking precedence over the original version). This is definitely out of my league but it works.


Information gathered from stackoverflow.com:

Quote:
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.


Link to stackoverflow page:

https://stackoverflow.com/questions/248 ... scripting#

Author:  racer-x [ Tue Jul 17, 2018 3:44 am ]
Post subject:  Re: The return of 'Error: ( : 1) atom->string: needs 1 argument(s)'

Better to just delete the "script-fu" plugin. It will cause problems with other scripts as well. I have no need for it as I can move the settings window anywhere I want using the Alt key.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/