En principe printExamples.lua est juste un module qui affiche "Hello" au démarrage de darktable. Tous les scripts sont dans le répertoire de /lua du répertoire config de ton système. Je ne suis pas sous Windows pour vérifier.
C'est difficile de faire un générique pour l'utilisation des scripts Lua, certains ajoutent une option a un module comme gimp_export qui ajoute une option dans exporter et permet d'envoyer un RAM développé et de lancer Gimp. D'autres ajoutent un nouveau module comme executable_manager.
Après chaque script Lua a son fonctionnement propre et normalement il y a un petit texte anglais en commentaire dans le fichier Lua
C'est difficile de faire un générique pour l'utilisation des scripts Lua, certains ajoutent une option a un module comme gimp_export qui ajoute une option dans exporter et permet d'envoyer un RAM développé et de lancer Gimp. D'autres ajoutent un nouveau module comme executable_manager.
Après chaque script Lua a son fonctionnement propre et normalement il y a un petit texte anglais en commentaire dans le fichier Lua
Code :
--[[
gimp - export an image and open with GIMP for editing
This script provides another storage (export target) for darktable. Selected
images are exported in the specified format to temporary storage. GIMP is launched
and opens the files. After editing, the exported images are overwritten to save the
changes. When GIMP exits, the exported files are moved into the current collection
and imported into the database. The imported files then show up grouped with the
originally selected images.
ADDITIONAL SOFTWARE NEEDED FOR THIS SCRIPT
* GIMP - http://www.gimp.org
USAGE
* require this script from your main lua file
* select an image or images for editing with GIMP
* in the export dialog select "Edit with GIMP" and select the format and bit depth for the
exported image
* Press "export"
* Edit the image with GIMP then save the changes with File->Overwrite....
* Exit GIMP
* The edited image will be imported and grouped with the original image
CAVEATS
* Developed and tested on Ubuntu 14.04 LTS with darktable 2.0.3 and GIMP 2.9.3 (development version with
> 8 bit color)
* There is no provision for dealing with the xcf files generated by GIMP, since darktable doesn't deal with
them. You may want to save the xcf file if you intend on doing further edits to the image or need to save
the layers used. Where you save them is up to you.
BUGS, COMMENTS, SUGGESTIONS
* Send to Bill Ferguson, wpferguson@gmail.com
CHANGES
* 20160823 - os.rename doesn't work across filesystems. Added fileCopy and fileMove functions to move the file
from the temporary location to the collection location irregardless of what filesystem it is on. If an
issue is encountered, a message is printed back to the UI so the user isn't left wondering what happened.
]]