On 22/04/14 18:57, Alexander Wagner wrote:
Before writing the python code, I looked into LUA. If
there is a way to access presets and manipulate them from
within LUA API, I missed it and would love to get some
pointers.
I fear I'm no expert on this, but the lua stuff developed
quite fast recently, so I understood it is the prefered
interface. Maybe for a concrete usecase the necessary
functionality is easily added?
Problem is that this functionality (API to access presets from LUA) does
not currently exist.
Changing core Darktable's APIs is not something I feel comfortable with.
And even if I would, not sure when and if those changes would get into
the MASTER git branch.
It is possible to add options to DT via LUA and let those
options call external program to manipulate the DB.
Hm, I wonder if one really needs this.
If there is no access to the presets from within Darktable using LUA, I
can't see any other option.
To get access to the presets, I must read the database from outside
Darktable.
3. It is reasonable that one of the next DT releases will
separate presets from pictures management.
IMHO this would be the best way to go and avoid the
necessity to do anything else.
Yep!
BTW,
You can use the script that I published to get a "central DB" that will
get all of your settings
1. Copy one of your library.db to a central place and change its name to
somthing like "central_library.db"
2. Run via crontab a daily script that will append presets from your
local darktables to this central db.
(one script for each local darktable installation)
3. After step 2 finished, do the same, but in the opposite direction
(from the central to each of your locals)
Only thing is that if you changed a preset instead of creating a new
one, the change will not impact the other DBs.
This is complex because I can't be sure which DB is the "correct" one
- lets assume that preset "xyz" exist in 4 Darktable DBs.
in the "central DB" it has the value "qqww"
in DB#1 and DB#2 it has the value "qqww"
in DB#3 it has the value "zzzz"
in DB#4 it has the value "rrrr"
Which value is the correct one?
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users