Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script-Fu in GIMP 3 website
#1
Hi,

I created a website about Script-Fu in GIMP 3. It explains the tools I use to code, offers tutorials on building libraries, and includes technical references specific to Script-Fu. You can download example plug-ins, such as auto-save and incremental save.

https://script-fu.github.io/funky/
Reply
#2
Created an account just to say *bless you* for sharing the autosave scripts for GIMP 3.0!
Reply
#3
Ahhh! I spoke too soon, I'm in Win11 right now! I'm getting:

Execution error for 'Set Up':
Error: eval: unbound variable: has-attribute?


https://stackoverflow.com/questions/2221...-arguments
..lists 7-8 different people claiming different solutions to the same problem. I don't suppose you have a guide on what to convert to get Script-Fu to work under Windows or both Linux / WIndows?

EDIT: Sorry! I should have specified, this is happening with the Almost-Autosave Setup script.

EDIT 2: I'm a complete idiot, I was getting the above error after I attempted to fix the create folder funciton. (It didn't work). YOUR script(s) (won't create the save folder) are giving me these errors:

Execution error for 'Activate':
Error: Procedure execution of gimp-xcf-save failed: Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf”: No such file or directory

Execution error for procedure 'gimp-xcf-save':
Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf”: No such file or directory

(In Windows, of course) I tried to create the folder for it, but that didn't seem to help at all.
Reply
#4
(04-21-2025, 02:16 AM)crogonint Wrote: Created an account just to say *bless you* for sharing the autosave scripts for GIMP 3.0!

Thank you! did you get it working?

Sorry, I don't use Windows.
Reply
#5
(04-21-2025, 01:39 PM)crogonint Wrote: Ahhh! I spoke too soon, I'm in Win11 right now! I'm getting:

Execution error for 'Set Up':
Error: eval: unbound variable: has-attribute?


https://stackoverflow.com/questions/2221...-arguments
..lists 7-8 different people claiming different solutions to the same problem. I don't suppose you have a guide on what to convert to get Script-Fu to work under Windows or both Linux / WIndows?

EDIT: Sorry! I should have specified, this is happening with the Almost-Autosave Setup script.

EDIT 2: I'm a complete idiot, I was getting the above error after I attempted to fix the create folder funciton. (It didn't work). YOUR script(s) (won't create the save folder) are giving me these errors:

Execution error for 'Activate':
Error: Procedure execution of gimp-xcf-save failed: Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf”: No such file or directory

Execution error for procedure 'gimp-xcf-save':
Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_2.xcf”: No such file or directory

(In Windows, of course) I tried to create the folder for it, but that didn't seem to help at all.

Hi,

Sorry for that, it should be fixed now, I tested in Windows 11.   
https://script-fu.github.io/funky/hub/pl...-autosave/
Reply
#6
Erg..

I had been trying to learn Script-fu to attempt t fix it myself, but that is not going well.
My heart skipped a beat when your link didn't work.
https://script-fu.github.io/funky/hub/pl...-Autosave/
Apparently the link has capital A's now.
I tried testing it, it didn't work for me.
It seems that it cannot create the "Autosave folder on my F drive..?
I created the folder for it.
I renamed it to "GIMP_Autosave".
I checked permissions.
I restarted GIMP to clear any error conditions.
I started GIMP "as Administrator" to see if that would help.

I tried to attach an image for you, but it erased my reply here, so I'm going to post this reply, then try to post the screenshot below...

Yeah, it won't let me attach a screenshot. here is the text of the errors it throws:
GIMP Error
Execution error for procedure 'gimp-xcf-save':
Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_1.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_1.xcf”: No such file or directory

GIMP Error
Execution error for 'Activate':
Error: Procedure execution of gimp-xcf-save failed: Error creating 'F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_1.xcf': Error opening file “F:\Images\GIMP_Autosave\Concordia[720x720]\autosave_1.xcf”: No such file or directory

UPDATE: I created the GIMP_Autosave folder manuallly, and the Concordia[720x720] folder manually, and it is now saving the autosave files for the test image in the correct folder on the F: drive! Big Grin

Now.. why won't it create those folders for itself??

UPDATE2: I tested with an unamed image and an alpha-only named image, the issue is definitely that it cannot create folders.

I also note that if one image errors out, it does not autosave any of them, but that may be expected behaviour.
I also noted that I don't HAVE to shut down GIMP to clear the error condition, I can just disable autosave, then enable it again. Smile
Reply
#7
(Yesterday, 06:59 PM)crogonint Wrote: UPDATE: I created the GIMP_Autosave folder manuallly, and the Concordia[720x720] folder manually, and it is now saving the autosave files for the test image in the correct folder on the F: drive! Big Grin

Now.. why won't it create those folders for itself??

Because in the code, creating a directory is always a separate action, if only because different user privileges can be necessary. It is usually not a problem because the code usually has some mkdir() function for this.

But it turns out that script-fu is seriously lacking in the file handling department, and so has no mkdir()
Reply


Forum Jump: