On 02/22/2015 11:47 PM, jeremy rosen wrote: > Adding stuff to the lua API is a bit complicated but not undoable, > > however it's hard to explain in a simple mail... the best thing is to > look at the lua specific parts in src/views/map.c as a starting point, > look around at how similar things are done in other users of lua out > of the lua/ subdirectory (libs, storages, formats) and come discuss it > with me on IRC (i'm boucman on the chan) > > After that, you need to study src/views/lighttable.c and look at all > the UI functionalities in there that you want to map in lua (including > focus detection, but that's not the only one) and map them in a > similar way as how it's done in the modules I've mentionned above > > reading the lua reference manual (especially the C/lua binding) might > help too
Ok, Can you give me a hint where (what function) to search for the focus detection related stuff? I've some minimal lua experience, so I'll see if I can make the bindings to work from then. Do I have access to the light-table functionality from darktable-cli? The final goal is to be able to make an auto-cropping script, which will be used to make the thumbnails for a gallery. /Teodor ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Darktable-users mailing list Darktable-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-users