Found this in the Gmail "never forget" cache  ... It was one of two
messages I posted on this subject. The other talked about stripping
the current lens name data out and then inserting whichever current
data LR will display.

I don't have any current Pentax camera PEF files to work on for
testing ... don't know whether you capture as DNG or RAW format. I
converted all my older .PEF files to .DNG.

G

On Fri, Dec 30, 2011 at 12:41 PM, Godfrey DiGiorgi <[email protected]> wrote:
> There's no hack required, but you can't do it inside LR. You need EXIFtool
> to do it properly.
>
> If you've already imported the files into LR and/or done any annotation or
> processing, here's the procedure I use:
>
> Inside Lr:
>
> - find and select all the exposures that need to be updated to reflect a
> specific lens name
> - group them into a subfolder*
> - save metadata to the files
> - quit LR
>
> * Depending on how you organize the image files on disk, this can be more or
> less complicated to do and then restore the files to their original
> locations. If you let LR organize files into a date-hierarchy by folder,
> it's usually easier to group all the files in a particular date folder into
> a subfolder and just do the operation several times than trying to put them
> all in one subfolder and then later restore them to several folders. Think
> first ... ;-)
>
> With a command line:
>
> - set directory to the folder where the files are
> - pick one file and run EXIFtool on it (use the -s -s options for a simple
> token-value list) outputting to a text file
> - search the text file for tokens that include the word "lens". Cameras
> differ in how they output lens name information. You usually find "lensid"
> or "lensname". Sometimes you find none.
> - say you found "lensname". run EXIFtool with the option to write a new
> "lensname" value, that is
>    exiftool -LensName="Tokina ATX Pro 28-70mm f/2.6-2.8" P0001234.pef
> - EXIFtool will add this token-value to a new copy of the file (if I got the
> command right off the top of my head... :-) and save the original as
> "P0001234.pef_original".
>
> - Start Lightroom
> - Select all the files you updated the lensname on
> - Use the "Metadata > Read Metadata from files" command
> - check the files' EXIF data: If the modification was successful, all the
> files will now show the proper lens name data.
> - presuming success, move the files back to their original folder
> - remove the temporary subfolder from Lightroom
> - quit Lightroom
>
> - outside of Lightroom, delete the subfolder and all the "_original" file
> copies.
>
> It's a little tedious, but I do it all the time ... particularly when I'm
> shooting film and scanning the results into a DNG encapsulated TIFF file ...
> so that I have lens name, focal length, and maximum aperture information in
> LR.
>
> G
>
> On Friday, December 30, 2011, Igor Roshchin <[email protected]> wrote:
>>
>> Hi All,
>>
>> I wonder if it is possible to correct the lens information in the LR
>> database?
>> Some of the 3rd party lenses are recognized by LR as an incorrect Pentax
>> lens. E.g. my Tokina ATX Pro 28-70/2.6-2.8 is recognized as
>> Pentax-F 28-80/3.5-4.5. I don't know why Tokina encoded the information
>> for this lense in duplication to the Pentax lens, but that's what it is.
>> Since I don't have that Pentax lens (and unlikely to get it in the
>> future), I'd rather replace the lens definition in the LR.
>>
>> Does anybody know if there is a hack available somewhere - to accomplish
>> this?
>>
>> Thank you,
>>
>> Igor
>>
>>
>> --
>> PDML Pentax-Discuss Mail List
>> [email protected]
>> http://pdml.net/mailman/listinfo/pdml_pdml.net
>> to UNSUBSCRIBE from the PDML, please visit the link directly above and
>> follow the directions.
>>



-- 
Godfrey
  godfreydigiorgi.posterous.com

-- 
PDML Pentax-Discuss Mail List
[email protected]
http://pdml.net/mailman/listinfo/pdml_pdml.net
to UNSUBSCRIBE from the PDML, please visit the link directly above and follow 
the directions.

Reply via email to