• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

P: SDK: photo:getDevelopSettings() sometimes returns nil for Temperature and Tint

LEGEND ,
Mar 02, 2023 Mar 02, 2023

Copy link to clipboard

Copied

photo:getDevelopSettings() sometimes returns nil for Temperature and Tint.   Tested in LR 12.2 and 10.4 on Mac OS 12.6.1.


To reproduce:

 

1. Download and unzip this catalog folder ("Temperature"):

https://www.dropbox.com/s/z527z9to4ie46vx/Temperature.2023.03.02.zip?dl=0

 

2. Copy the file "get-temperature.lua" from the catalog folder to the User Scripts folder.

 

3. Open the Temperature catalog.

 

4. Select the one photo and go to Develop.

 

5. Go to Library and do Scripts > get-temperature. Observe the temperature and tint are correctly displayed:

johnrellis_0-1677805472559.png

 

6. Do Quick Develop > Reset All.

 

7. Do Scripts > get-temperature and observe that temperature and tint are incorrectly nil:

johnrellis_1-1677805535275.png

 

 

Bug Fixed
TOPICS
SDK

Views

999

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Pinned Replies

Adobe Employee , Sep 08, 2023 Sep 08, 2023

I am moving this thread back to discussions.

The engineers have provided this script to illustrate how this should be called.

import "LrTasks".startAsyncTask (function ()
     --local s = import "LrApplication".activeCatalog ():
     --getTargetPhoto ():getDevelopSettings ()

 

local s = import "LrDevelopController"
local temp = s.getValue( "Temperature" )
local tint = s.getValue( "Tint" )

 

    import "LrDialogs".message (
          --tostring (s.Temperature) .. ", " .. tostring (s.Tint))
          tos

...

Votes

Translate

Translate
Adobe Employee , Oct 27, 2023 Oct 27, 2023

Marking fixed as requested in the thread. 

Status Fixed

Votes

Translate

Translate
28 Comments
Advocate ,
Oct 26, 2023 Oct 26, 2023

Copy link to clipboard

Copied

@John R Ellis 

 

Apologies John.

I have now check the DNGs effected in my test catalog and they all originate form a JPEG or a non RAW file which explains the lack of Temperature and Tint.

 

So no actual RAW file is affected.

.

Votes

Translate

Translate

Report

Report
LEGEND ,
Oct 26, 2023 Oct 26, 2023

Copy link to clipboard

Copied

This is all fairly new to me too. I hadn't really looked into DNGs much until Denoise and the recent use of JPEG XL compression instead of JPEG.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Oct 27, 2023 Oct 27, 2023

Copy link to clipboard

Copied

LATEST

Marking fixed as requested in the thread. 

Rikk Flohr - Customer Advocacy: Adobe Photography Products
Status Fixed

Votes

Translate

Translate

Report

Report