On Wed, Jun 19, 2013 at 3:18 PM, Pascal Obry <pas...@obry.net> wrote:
>
> Jeremy,
>
> > huh ???
>
> We can probably avoid that!
>
>
sorry, that was an expression of suprise not meant to offend in any way
> > can already be done with lua...
> >
> > more precisely that's the whole point of lua. If lua doesn't satisfy
> > your need for that sort of use cases, please tell me what's missing so I
> > can add it
>
> Great! How do I start then? I have zero experience with Lua and zero
> knowledge about the way it is integrated into darktable. Any
> documentation to start reading?
>
>
I had sent a mail on the subject that might be a bit more complete that
what i'll write below, but to give a quick summary
an introduction to the DT specific lua is here :
http://darktable.org/redmine/projects/darktable/wiki/LuaUsage
the complete darktable/lua API is documented here :
http://darktable.org/redmine/projects/darktable/wiki/LuaAPI
and a simple example script is here
http://darktable.org/redmine/projects/darktable/wiki/LuaScripts
> Also, I think this is a really standard feature. Do we have a way to
> share such Lua script?
>
>
for the moment I would like to collect them in the wiki page above so I can
review them. The lua API is brand-new and I want to see how people use it
to check if any tweak/simplification is needed.
And to answer Steven's question, yes. A round trip is possible, though the
example above doesn't do it.
hal_from_2001 has been working on such a script to do a loop through enfuse
(iirc) and reimport the result
> Anyway, looking forward to it...
>
> > 2. A way to keep a photo in a cache locally and be able to edit it
> even
> > when the master picture is not present (on an external drive not
> > connected).
> >
> > This is a new feature of Lr5 and I had this needs long ago,
> probably
> > a nice new feature that I could try to implement.
> >
> > If I come to it, I'll discuss the UI part before of course. I
> have no
> > idea how to integrate this nicely at the moment.
> >
> >
> > hmm interesting. Again it would not be stupid to implement this using
> > the lua backend, but unless the previous feature it's not possible to do
> > that in lua right away. It needs some thought into the design.
>
> Would be nice indeed if again it can be done in Lua. I understand that
> it is the preferred way to extend darktable.
>
>
it's the prefered way to do complicated customisations for your own need,
not to extend DT in general. This is of course a grey area.
If a feature is needed by everybody it should be in core
If a feature is only usefull for a particular workflow then it should be
written in lua
Feel free to ask me any lua question and/or post your scripts for help. Few
people have started doing that but i'd really like to have more example
scripts before the next release...
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel