It is currently Tue Jul 02, 2024 2:08 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: The return of 'Error: ( : 1) atom->string: needs 1 argument(s)'
PostPosted: Tue Jul 17, 2018 2:09 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2061
Location: East Midlands of England
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 1015 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#

_________________
Image

"Let no one steal your dreams."
Paul Cookson


Latest plug-in update: Paragrapher v.1.4
Custom Font Links
Tools
Character Paths
White Bases


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: The return of 'Error: ( : 1) atom->string: needs 1 argument(s)'
PostPosted: Tue Jul 17, 2018 3:44 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
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.


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Return of Psychedelic Text and Alpha (Rel 4), for Gimp 2.10 only

5

No new posts The return of the Lord of The Rings script for Gimp 2.10

0

No new posts Attachment(s) Columbine String Art.

6

No new posts Attachment(s) String Art Plug-in

26

No new posts Attachment(s) String Trussed Dalia

5



* Login  



Powered by phpBB3 © phpBB Group