/LR-Photomatix-Pro

A python script to automate creation of HDR photos from Adobe Lightroom and Photomatix Pro software.

Primary LanguagePythonMIT LicenseMIT

LR-Photomatix-Pro

A python script used to create HDR photos from Adobe Lightroom and Photomatix Pro software automatically on Mac OS X.

This script was tested on OS X 10.8-10.10+ successfully.

How it works

  • The script goes to the open Lightroom
  • Creates two virtual copies of the selected photo (NB: you must be in Library module)
  • Sets exposure to -2 on one virtual copy and +2 on another.
  • Exports original and the copies to Photomatix Pro
  • Creates an HDR using settings that are selected already
  • Re-imports created image into LR
  • Deletes virtual copies and sets Picked flag on the original image. Personally, i set a filter on library to only show unflagged images, so this last step hides the original image automatically

Prerequisites

The script requires py-applescript to be installed.

You may need CLI Tools to install py-applescript*

In order for Lightroom to contact Photomatix Pro, you also need the LR plugin from Photomatix (on OS X it should be automatically installed when you install Photomatix Pro, but if not, see here)

Installation

  1. Open Terminal app (/Application/Utilities)

  2. Clone the repository. In terminal type:

git clone https://github.com/andreixk/LR-Photomatix-Pro

Usage

  1. Open Adobe Lightroom©

  2. Select the image you want to turn into an HDR.

  3. Open Terminal and navigate to where you saved the script.

#e.g. if you saved it to your Downloads folder, type this:
cd ~/Downloads/LR-Photomatix-Pro  
  1. Run the script:
python light.py

press enter and watch the magic happen.



*To install CLI tools run this command in terminal: xcode-select --install