Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
09-04-2018, 09:32 AM - 4 Likes   #1
Site Supporter
Site Supporter
fwwidall's Avatar

Join Date: Sep 2014
Location: Waterloo, Ontario
Photos: Gallery | Albums
Posts: 272
Photoshop script to display K3 image focus points

I was reading some old posts on the forum about creating a Photoshop Javascript script to display the focus points on a K3 image, and having zero experience of writing such things, and some time on my hands, I thought I'd have a go

I came across a script from 2010 called "ShowFocusPoint" by Malcolm Hoar for displaying focus points for Canon and Nikon images which I took as my starting point.

As I said I have zero experience in writing JavaScript so I'm sure the code could use a lot of improving. Hopefully we have some folks here who can improve it.

Here's a link to the script on dropbox (Windows only).

It uses the excellent 'exiftool' to extract data from the image so you need that installed. In the script you need to define the path to 'exiftool' and to a temp folder. It works in Photoshop CS6, and hopefully other versions.

The results for landscape and portrait images seem to differ, for some reason I have yet to figure out, but its close.

To run it open a K3 image file, go "File/Scripts/Browse", navigate to where you stored the script, and double click. After a while a new layer called 'FocusPoints' should have been created containing a representation of all the focus points as red '+'s and the in focus point as a green '[]'.

Hopefully you will end up with something like this...

Attached Images
 
09-04-2018, 05:29 PM   #2
Senior Member




Join Date: Oct 2011
Posts: 100
QuoteOriginally posted by fwwidall Quote
I was reading some old posts on the forum about creating a Photoshop Javascript script to display the focus points on a K3 image, and having zero experience of writing such things, and some time on my hands, I thought I'd have a go

I came across a script from 2010 called "ShowFocusPoint" by Malcolm Hoar for displaying focus points for Canon and Nikon images which I took as my starting point.

As I said I have zero experience in writing JavaScript so I'm sure the code could use a lot of improving. Hopefully we have some folks here who can improve it.

Here's a link to the script on dropbox (Windows only).

It uses the excellent 'exiftool' to extract data from the image so you need that installed. In the script you need to define the path to 'exiftool' and to a temp folder. It works in Photoshop CS6, and hopefully other versions.

The results for landscape and portrait images seem to differ, for some reason I have yet to figure out, but its close.

To run it open a K3 image file, go "File/Scripts/Browse", navigate to where you stored the script, and double click. After a while a new layer called 'FocusPoints' should have been created containing a representation of all the focus points as red '+'s and the in focus point as a green '[]'.

Hopefully you will end up with something like this...
Excellent! Thanks! I've downloaded it and I'll have a go at it when I have a chance.
09-04-2018, 06:30 PM   #3
Senior Member
runswithsizzers's Avatar

Join Date: Jun 2011
Location: USA
Posts: 186
For Mac users, you may want to look at Mac EXIF Viewer from Softmatic <link here>
It recreates a viewfinder-like window on your Mac which displays a lot of info about your image, including the focus point.
09-07-2018, 11:05 AM   #4
Site Supporter
Site Supporter
fwwidall's Avatar

Join Date: Sep 2014
Location: Waterloo, Ontario
Photos: Gallery | Albums
Posts: 272
Original Poster
I've been playing with this script some more to try and improve it.

I've changed the code to load a transparent GIF file containing all the AF points to a layer, and just write the in-focus point onto that layer. The earlier version was creating a new layer for each focus point, before merging them. It runs a lot faster now. Copy the GIF file into your specified temp folder before running.

I've also added another script 'K3EXIF.jsx' which will write some basic EXIF data to a separate layer in the image. It should work on any image, not just K3 ones.

I make no guarantee as to their accuracy, as I'm a newbie to javascript, but hopefully you'll find them useful.

Please give them a try and see what you think.

Fred.

Attached Files
File Type: zip K3Scripts.zip (85.9 KB, 21 views)
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
display k3 image, focus, image, k3, k3 image focus, photoshop, photoshop script, script, script to display
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for photoshop script evaluators - various script (analysis and diagnostic) rechmbrs Digital Processing, Software, and Printing 0 08-12-2017 05:31 AM
Looking for photoshop script testers - stacking diagnostic rechmbrs Digital Processing, Software, and Printing 2 07-06-2017 01:08 PM
unable to display image on back display Starwars50 Pentax K-3 & K-3 II 4 06-24-2015 02:48 AM
Help needed - Photoshop script / action LFLee Digital Processing, Software, and Printing 6 11-16-2011 04:22 AM
K5 viewfinder display of AF points sam_553817 Pentax K-5 & K-5 II 6 02-02-2011 10:57 AM



All times are GMT -7. The time now is 04:25 AM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top