Plugins
Plugins work in Photogrok version 2.65 or higher. Previous sample scripts still work and can be found here.

A plugin is a JS program using a defined api to interact with other plugins and PhotoGrok. More detailed documentation is on the way but you can view the code here and use the examples to create your own plugins. You can auto-load all these plugins by pasting the following three lines into the script editor (CTRL+SHIFT+J):

load('https://www.metaloupe.com/plugins/defaults.js');
var ds = new DefaultSetup('https://www.metaloupe.com/plugins/');
ds.init();
Many of these example plugins create menu items in PhotoGrok. Either top-level "User" menu items or pop-up menu items from right-clicking on photos or tree nodes. The plugins provide simple help dialogs which can be found in the PhotoGrok "Help" menu. Painters and filters are display only and do not alter your saved images.

A plugin object can typically be accessed by it's name from other scripts. Functions that can be called should be documented in the help dialog for that plugin. For example, to change the default painter used by the Filler plugin to the psychedelic painter from the Psych plugin, enter the following via CTRL+SHIFT+J or CTRL+SHIFT+E (don't forget to activate the Filler plugin from the menu):

Filler.setFillerPainter(Psych.getPainter());
Expect updated plugins to be added over time. Let me know if you develop a plugin you would like to see added to this list.