This seems to come up fairly often. Non-programmers often have a difficult time understanding what to do with scripts and plugins they download for use with GIMP. It isn’t clear what the difference is between them. What constitutes a script and what constitutes a plugin? Aren’t python programs considered scripts? Are they all just plugins? What do you do with these programs in order to use them with GIMP?
Every user has a .gimp directory in their HOME directory. The actual name is suffixed with the version you’re using, so the latest stable release uses a directory named .gimp-2.6. Inside of the .gimp directory you’ll find a variety of files and directories. Two of these directories are plug-ins and scripts. The plug-ins is where you store python scripts and compiled plugins. The scripts directory is where you store script-fu scripts.
Technically there is no functional difference between the files in either directory. Python scripts, script-fu scripts and compiled plugins provide the same internal capabilities. This means that a python script can call a script-fu script and vice-versa. But non-developers don’t care about that. So just remember that only script-fu scripts go in the scripts directory. All other plugins go in the plug-ins directory.
Plugin developers who use python for their plugins might want to consider using the batch processing option of GIMP. To pass a python script to GIMP through the batch interface you need to specify that the python interpreter should be used, as in:
Then any arguments passed to the -b option will be run through the python intepreter.