Thank-you very much, Bill, for your comments, understanding and refreshing lack 
of disdain for those of us who struggle to do much more than hit the hot spots 
in a gui! I’m going to follow your generous advice now to see if I can get some 
joy…


> On 09 Jan 2017, at 14:05, William Ferguson <[email protected]> wrote:
> 
> Unfortunately the lua scripts aren't readily accessible to users without some 
> coding background :(.  I'm currently working to address this with a script 
> manager that can be dropped in as the luarc file and provides a gui element 
> to download, update, enable and disable scripts.  Right now it is in testing, 
> but hopefully it will be done soon.
> 
> In the meantime....
> 
> Lua looks for scripts using a set of paths.  Therefore, if you specify a 
> script in the luarc such as
> 
> require "contrib/gimp"
> 
> then the lua interpreter looks for ~/.config/darktable/lua/contrib/gimp.lua.
> 
> So, in order to set this up you could do:
> 
> cd ~/.config/darktable
> git clone https://github.com/darktable-org/lua-scripts.git 
> <https://github.com/darktable-org/lua-scripts.git> lua
> 
> 
> then you could edit your ~/.config/darktable/luarc to say (for instance):
> 
> -- include hugin
> require "contrib/hugin"
> 
> -- and selection to pdf
> require "official/selection_to_pdf"
> 
> -- and hello world
> require "examples/hello_world"
> 
> Start up darktable and you should have scripts.  If you have a problem, then 
> start darktable from the command line with darktable -d lua and lua debugging 
> messages will print in the console.  The debugging messages start with LUA 
> ERROR, but they aren't necessarily errors.
> 
> Hope this helps,
> 
> Bill
> 
> On Mon, Jan 9, 2017 at 12:16 PM, J Albrecht <[email protected] 
> <mailto:[email protected]>> wrote:
> Hello all,
> 
> Every so often I come across a post referencing “extra” lua scripts. They 
> look to be quite intriguing. So much so that I’ve loaded them all from github 
> into my .config/darktable directory and modified my luarc file with ‘require 
> “script”’ etc. Alas, after doing this the expected additional functionality 
> doesn’t seem to be available! Notwithstanding me being unable to get even a 
> mere whiff of response from these github scripts, I can’t even get the simple 
> example in the dt manual to work.  For example:
> 
> 9.1.2. A simple lua example
>       Let's start with a simple example. We will print some code on the 
> console. Create a file called luarc in darktable's configuration directory 
> (usually ~/.config/darktable/) and add the following line to it:
> 
>       print("Hello World !")
> 
>       Start darktable and you will see the sencence Hello World ! printed on 
> the console.
> 
> Umm, no, nothing happened :-(
> 
> Can somebody please shed light on how some of us code-witless souls can 
> “easily" make use of the lua script functionality?  With all due respect, the 
> current documentation is lacking effectiveness in this regard.
> 
> Many thanks in advance!
> 
> 
> ____________________________________________________________________________ 
> darktable user mailing list to unsubscribe send a mail to 
> [email protected]

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to