On Sun, Dec 8, 2019, at 15:29, William Ferguson wrote:
> I've never tried the script against an image with no identity. I'll
> have to "create" one and see what happens.
My approach is to use a metadata field which can be set in-camera, and which I
don't use otherwise, by setting it to a number representing one of my "dumb"
lenses. Then, on import, when lens name is missing, look up the name to apply
based on this number. Works ok, but AFAIK it's still the case that setting a
new lens name with Lua won't result in that name being used in exported
images... so I add an ugly extra exiftool call to handle that. Have you found a
better way around this? Otherwise, for your use case of re-mapping names, it
might make more sense to do it at the exiv2 level:
https://dev.exiv2.org/projects/exiv2/wiki/Lens_Recognition_in_Exiv2_v026_(and_later)/
Anyway, I tore the relevant part of my Lua mess out and posted it here a while
back:
https://www.mail-archive.com/darktable-user@lists.darktable.org/msg07784.html
--
jys
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org