musselwhizzle / Focus-Points

Plugin for Lightroom to show which focus point was active in the camera when a photo was taken
Apache License 2.0
344 stars 42 forks source link

Initial support for Pentax cameras #122

Closed roguephysicist closed 7 years ago

roguephysicist commented 7 years ago

Howdy! We spoke on Reddit a couple of days ago and I mentioned I wanted to contribute -- so here we are.

Anyway, I rapidly discovered that the Pentax and Nikon systems had significant differences and quirks. I went ahead and added a PentaxDelegates file, which I tried out extensively with my K-50. I got everything working for both phase and contrast (live view) detection. This includes face detection, tracking, manual point selection, you name it. The Pentax metadata is quite limited, but I was able to extract every last bit.

I know that the metadata differs slightly between Pentax models, so I'm thinking about asking the community for raw files and point maps. There aren't very many Pentax cameras, so I think it shouldn't be very hard at all to get the plugin working for all of them.

I also need to mention that I had never even seen a Lua script until two days ago, so my code will be far from perfect. Let me know if there's anything I can correct/optimize/improve.

musselwhizzle commented 7 years ago

Nice work! I appreciate the help. Left some comments. We'll get this merged in soon.