It is currently Wed Jul 03, 2024 5:56 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 9:57 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
Hello,

I've upgraded my Ubuntu to Ubuntu 20.04.1 LTS which comes with new GIMP 2.10.20. My scripts used to work fine with the older version of GIMP, but I can't make them work anymore on new GIMP 2.10. These are the steps taken after I made a very plain script-fu just for the sake of simplicity:

FIRST EXPERIMENT
-----------------------
1) These are my script-fu folders:

Attachment:
1.png
1.png [ 81.84 KiB | Viewed 3747 times ]


2) Content of test.scm, which is located in ~/gimp folder with full 777 permissions, is:
(define (script-fu-test
(gimp-message "TEST!!!!!!!!!!")
))


3) Then, when I refresh scripts, a pop-up appears with the following error message::

Attachment:
3.png
3.png [ 21.81 KiB | Viewed 3747 times ]


SECOND EXPERIMENT
--------------------------
1) I move test.scm to /usr/share/gimp/2.0/scripts folder with the rest default GIMP scripts.
2) I run
gimp -i -b "(test)" -b '(gimp-quit 0)'

3) The following error appears:

Attachment:
5.png
5.png [ 21.38 KiB | Viewed 3746 times ]


I have been trying to make it work unsuccessfully since weeks. I don't want to go back to old GIMP so your help would be really valuable!

Thanks in advance!


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: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 10:12 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Assuming Gimp was intalled via PPA, then this is where you need to put your scripts.

Attachment:
gimp.jpg
gimp.jpg [ 58.8 KiB | Viewed 3742 times ]


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 10:22 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
Thank you for your fast reply!

I installed GIMP via Ubuntu Software. So, I moved my script to ~/.config/GIMP/2.10/scripts, but I still get the same error:

Attachment:
6.png
6.png [ 31.98 KiB | Viewed 3735 times ]


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 11:06 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Your code can only run in the console.
To work from the menu, it must meet the registration conditions:
(define (script-fu-test)
(gimp-message "TEST!!!!!!!!!!")
)
(script-fu-register
   "script-fu-test"
   "Gounis Test..."
   "Test"
   "gounis"
   "gounis"
   "2020"
   "RGB* GRAY*"
   SF-IMAGE       "The Image" 0
   SF-DRAWABLE    "The Layer" 0
)   

(script-fu-menu-register "script-fu-test" "<Image>/Test/" )

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 12:22 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
Thanks for your answer. I still get the same error though :(

Attachment:
7.png
7.png [ 69.36 KiB | Viewed 3698 times ]


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 1:01 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
I have doubts about your command syntax (no-interface and batch)
Why don't you run Gimp normally to check the menu?
Image

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 1:07 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
MareroQ, Where can I see this panel?

Moreover, I installed Gimp 2.10.20 via Ubuntu Software. It seems though that I installed the snap version of Ubuntu. Maybe, this is the problem? Do you think it would be better to install 2.10.18 not using snap?


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 1:28 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
The problem was indeed that I installed the snap version of Gimp! So, I completely removed Gimp, and then I installed Gimp 2.10.18 via ppa:otto-kesselgulasch/gimp. Afterwards, I moved my script into ~/.config/GIMP/2.10/scripts, and it worked fine either via command line or via GIMP!! :) I will try to run my actual scripts now, and then, if everything fine, I will mark the thread closed.

Thanks so much for your time, people! :)


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 1:32 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Gimp-2.10.18 has terrible bugs - advise against it.
Most recommend a choice:
https://github.com/aferrero2707/gimp-appimage/releases
I use my own compilation and appimage (it doesn't interfere).
For more details, see https://www.gimp-forum.net/

"This panel" - is the main menu of Gimp (I don't know if I understood the question correctly).

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sat Sep 05, 2020 1:59 pm  (#10) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
I sort of agree about Gimp 2.10.18 being less than wonderfull. However it the default version for 'buntu + Mint 20.04

The appimage is not going to work for gounis, running a command line gimp -i -b "(test)" -b '(gimp-quit 0)' ????

_________________
Image


Top
 Post subject: Re: Scripts don't work anymore with Gimp 2.10.20
PostPosted: Sun Sep 06, 2020 9:02 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 05, 2020
Posts: 6
I just installed Gimp 2.10.20 using Flatpak (https://itsfoss.com/gimp-2-10-release/), and my scripts work fine!!! :) Thank you all for your recommendations and time!

The only problem now is that I get this weird message when I run my script
Attachment:
Screenshot from 2020-09-06 15-26-00.png
Screenshot from 2020-09-06 15-26-00.png [ 23.78 KiB | Viewed 1535 times ]


This line seems to be responsible for it:
....
(let*
       (
        (image    (car (gimp-file-load RUN-NONINTERACTIVE filename-in "")))
.....
.....
.....
))


filename-in is something like "test.jpg".

Do you maybe know what it might cause it?


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Scripts that don't work properly

5

No new posts Attachment(s) John Lakkas scripts and plugins do not work

6

No new posts Not GIMPin' Too Much Anymore...

21

No new posts Attachment(s) Paintbrush doesnt work and none of the solutions on the internet work

13

No new posts Attachment(s) Plugins don't work

2



* Login  



Powered by phpBB3 © phpBB Group