3 Replies Latest reply on Aug 7, 2014 1:01 PM by NicHamilton

    Automatically adding keywords on LR5 import


      Hopefully this is a simple question that I just can't find the answer to...


      I use a Leica digital rangefinder with non-Leica lenses.  One of the oddities of this camera is that to get the most out of 3rd party lenses you typically need to "code" them as a Leica lens.  So the EXIF data for my Zeiss ZM 35/2 actually says Leica Summicron 35/2.  I don't need to change the EXIF but I would like to have a plug-in/script that automatically adds a "ZM 35/2" keyword to any image with "Leica Summicron 35/2" in the lens EXIF.


      I was able to do this in Aperture with Applescript, but can't seem to figure out how to do it on LR5.  I can handle basic programming so I don't need the whole script/plug-in written if someone can at least  point me to the basic outline or tutorial on keyword adding.




        • 1. Re: Automatically adding keywords on LR5 import

          I'm not sure you can add keywords on import, but once pictures are in the catalog you can select all in the library mode for your imports and universally add keywords there all at once. I'm may be proven wrong, of course.

          • 2. Re: Automatically adding keywords on LR5 import
            bmicklea Level 1

            Thanks - unless I'm misunderstanding you that's a manual change, right?  In other words I'd have to select all the photos based on their EXIF info and then add a keyword to the bulk-selected photos.  This is what I have been doing but I was hoping there was a more automated way so that I wouldn't have to do it manually every time.


            If there's some automated way to do it in the catalog though that I've missed please clarify as that would be great news!

            • 3. Re: Automatically adding keywords on LR5 import
              NicHamilton Level 3

              It's been a while since I did any scripting in Lightroom but I think what you want should be possible (though it might not be at import, you might just need to run the script on the files after you've imported them).  Try Googling "Lightroom Lua Script SDK" and there are some guides on how to get started.  you should certainly be able to pick up the EXIF info on the lens and write something to a custom filed, nor so sure about the Keyword field, seem to recall it was a tricky one (but that may have been reading from it rather than writing to it....as I said been a long time and my scripts were pretty basic).  There used to even be a Lua Scripting forum here...not sure if there still is.  Good luck!