Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script-fu help
#7
(03-08-2026, 11:52 PM)Scallact Wrote: The procedure browser lists those:

gimp-image-get-file
gimp-image-get-name
gimp-image-get-xcf-file

I don't know which one you're looking for, but the procedure browser give some description (you should use it, it's in the help menu)

I was able to figure it out. It turns out that the "GFile" object returned by gimp-image-get-file is not an object or structure, but simply the filename.

I now have the whole script working, and I get the desired result when I run it from the menu. The one last challenge is to assign a keyboard shortcut to it. I used to be able to do this with the dynamic keyboard shortcuts, but that doesn't seem to exist anymore, and the keyboard shortcuts settings don't seem to know about the menu entries created by the script registration.

Would anyone know how I can assign my preferred keyboard shortcut (Ctrl+D is what I used) to run it without going into the menu?

Thanks,
Eric
Reply


Messages In This Thread
script-fu help - by egrivel - 03-08-2026, 07:43 PM
RE: script-fu help - by Scallact - 03-08-2026, 11:52 PM
RE: script-fu help - by egrivel - 03-09-2026, 12:25 AM
RE: script-fu help - by egrivel - 03-13-2026, 11:19 PM
RE: script-fu help - by Scallact - 03-09-2026, 09:05 AM
RE: script-fu help - by rich2005 - 03-09-2026, 11:23 AM
RE: script-fu help - by teapot - 03-10-2026, 04:57 AM

Forum Jump: