It is currently Thu Jul 04, 2024 4:48 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Incidentally, newbies, "scripts" and "plug-ins" implement "filters"
PostPosted: Wed Nov 30, 2022 12:09 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
GIMP Version:
Operating System: Linux
GIMP Experience: Experienced User

It just occurred to me that new users may stumble over the idea that discussions here talk about "scripts" and "plug-ins" for GIMP but when installed they encounter them as "Filters" on the GIMP menu.

And anyone will tell you, "Oh yeah. You definitely want to use Filters."

"Scripts" are programs, written most commonly, I guess, in Scheme (a LISP-like language, or perhaps it is now v.v.) and "Plug-ins" are, these days I guess too, most commonly written in Python. Both do filtering/apply filters. (Many moons ago, as I but dimly recall or only imagine, "compiled" programs like from C source (think .com and .exe files in Windows) could be installed as well, thus "plug-ins/" and "scripts/" and not "python/" or "scheme/" folders.)

Just where GIMP looks for external file filters|scripts|plug-ins is configurable from the menu in GIMP:
Under Edit->Preferences
and then under +Folders on the LHS
clicking on Plug-ins or Scripts.

Typically "Scripts" (*.scm files) are copied into a folder name 'scripts/' (in the previously found list).
"Plug-ins" (*.py files) are found in 'plug-ins/' folders.

In my not necessarily generic case in Ubuntu, as an example, GIMP searches for scripts in four places[1]:
~/.config/GIMP/2.10/scripts/
~/.gimp-2.10/scripts/
/usr/share/gimp/2.0/scripts/
/usr/lib/gimp/2.0/scripts/
[1] this is probably the result of years of my never doing any house-cleaning after upgrades and GIMP upgrades being conservative about preserving user settings

When you download a script, you extract it from its archive (if so delivered) and copy the .scm or .py file into whichever directory your GIMP configuration indicates it will be searching. (I can imagine it might be that the script/plug-in may also need to be marked 'executable' [chmod u+x <scriptname>], but may be not.)

Incidentally, a careful look inside the scripts (they are after all text files) provides the information about the menu in GIMP under which they will be found--not always obvious in every single case.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


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: Incidentally, newbies, "scripts" and "plug-ins" implement "filters
PostPosted: Thu Dec 01, 2022 4:09 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Scripts are always in Scheme. They don't need to be marked as executable.

On Unix-like systems plug-ins are in whatever can be marked "executable" if Gimp has API bindings for the language used: C, but also C++, and most compiled language that can always use the C bindings, and Python for "interpreted" language (there are also Perl historical bindings...). On windows, plugins are binary .EXE (in whatever language can use the API bindings), and there is a special case for Python.

A better way to find where to look for the plugin menu entry is the plugin documentation :)

_________________
Image


Top
 Post subject: Re: Incidentally, newbies, "scripts" and "plug-ins" implement "filters
PostPosted: Thu Dec 01, 2022 8:50 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
...which is kind of like saying: "A better way to get rich is to own an casino."

While I can't always find the documentation, I can open a file, attention-span permitting. :)

Thank you for correcting and clarifying.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) What filters/scripts/plug-ins do you use the most?

7

No new posts CMYK student is going to implement non-destructive filters soon

0

No new posts Where to find links to older Gimp Scripts and plug ins

3

No new posts Attachment(s) Shortening mouse/keystrokes save/export script or method to implement?

41

No new posts Attachment(s) Don't work procedures plug-in-bump-map, plug-in-displace

2



* Login  



Powered by phpBB3 © phpBB Group