Re-importing an already imported image through the regular GUI does cause
the sidecar to be re-read. I have not tried this through Lua.

--
August Schwerdfeger
[email protected]

On Wed, May 15, 2019 at 11:14 AM William Ferguson <[email protected]>
wrote:

>
> Hi Stefan,
>
> On Wed, May 15, 2019 at 8:34 AM <[email protected]> wrote:
>
>> Hi, one more Lua question:
>>
>> How can I trigger darktable to reload a sidecar file of an
>> already-imported file (and update its databas accordingly)?
>>
>> I have a script that externally changes the Xmp metadata of a file.
>> Currently I need to restart darktable, which then recognises the
>> modified sidecars and asks me to reload them.  I want to do this from
>> the Lua script immediately.
>>
>
> You could try importing the image using darktable.database.import().  I'm
> not sure if it would pick up the updated sidecar information or not, but
> you could try it and see.
>
>>
>> Cheers
>> Stefan
>>
>>
>> --
>> http://stefan-klinger.de                                        o/X
>> I prefer receiving plain text messages, not exceeding 32kB.     /\/
>>                                                                   \
>>
>> ____________________________________________________________________________
>> darktable user mailing list
>> to unsubscribe send a mail to
>> [email protected]
>>
>>
> Regards,
>
> Bill
>
> ____________________________________________________________________________
> darktable user mailing list to unsubscribe send a mail to
> [email protected]
>

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to