Hi,
I'm updating some NEF's to add Lens data after using a manual focus lens. I'm also using the -if option to only process NEF's missing this data in a folder.
I've found that the following command works as expected:
exiftool -P -Lens="21mm f/2.8" -MaxApertureValue="2.8" -FNumber=11 -FocalLength=21 Zeiss.NEF
Then, executing
exiftool -Lens -MaxApertureValue -FNumber -FocalLength -ext NEF .
I get
======== ./Zeiss.NEF
Lens : 21mm f/2.8
Max Aperture Value : 2.8
F Number : 11.0
Focal Length : 21.0 mm
But, if I use an -if option as follows (FNumber does equal 0 for these files):
exiftool -P -Lens="21mm f/2.8" -MaxApertureValue="2.8" -FNumber=11 -FocalLength=21
-n -if '$FNumber eq 0' Zeiss.NEF
Then the result is:
======== ./Zeiss.NEF
Lens : 0mm f/0
Max Aperture Value : 2.8
F Number : 11.0
Focal Length : 21.0 mm
Three tags are updated but Lens is not.
exiftool 7.99 on OSX 10.5.8