![]() |
gimp-image-get-filename - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions) +---- Thread: gimp-image-get-filename (/Thread-gimp-image-get-filename) Pages:
1
2
|
RE: gimp-image-get-filename - teapot - 10-10-2024 (10-10-2024, 09:44 AM)PixLab Wrote: Thanks, ok I understood how it works in the Script-fu console, not sure how to adapt it to the gimp-image-get-filename, nor understand what's the ' in front of the parenthesis It's just to make a list to have something to play with: '(3 45 4 "abc" "def") (10-10-2024, 09:44 AM)PixLab Wrote: not a lot about script-fu on internet, or things are from 20 years ago ➤ we all go by the same different results in google Yes it's all old and much of it like strbreakup that you used in post #6 are deprecated. I don't know when that is due to happen. That said I'm not up to writing replacements as my knowledge is limited too ![]() Here's my try, it just prints the resulting name in a gimp message. It doesn't handle unusual cases, like no filename or no file extenstion and uses deprecated code. Code: ; To look at PixLab's questions from here: RE: gimp-image-get-filename - PixLab - 10-30-2024 Shame on me ![]() ![]() In all case thank you so very much for ALL your help RE: gimp-image-get-filename - pixelmixer - 11-21-2024 (10-09-2024, 08:37 AM)rich2005 Wrote: Maybe script-fu is the simpler alternative for users. There are (were) Gimp 3 examples around: Hello, Discourse freezes comments, so the original link is now permanently inactive. Previously, there was a detailed Script-Fu blog created before I gained more knowledge about building websites. Here is the updated version: https://script-fu.github.io/funky/ It’s a beginning. More sections will be added over time, and it will eventually become a comprehensive resource for Script-Fu. I have come to appreciate Script-Fu and believe it has untapped potential. In Artbox, I discovered how to add extra functions to expand Script-Fu's capabilities. Although I am interested in learning Python, Script-Fu—along with loading libraries, definitions, and custom syntax highlighters—is fun. Thanks |