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

P: SDK: photo:applyDevelopSettings() raises error when setting PerspectiveVertical or

LEGEND ,
Dec 11, 2021 Dec 11, 2021

Copy link to clipboard

Copied

When a plugin attempts to set a photo's PerspectiveVertical to a non-zero value and PerspectiveHorizontal to 0, LR throws

 

"An internal error has occurred. ?:0: attempt to index a nil value"

 

If both of those settings are non-zero, or if ConstrainToCrop is 1, no error is raised.

 

To reproduce, run this script:

 

local LrApplication = import "LrApplication"
local LrTasks = import "LrTasks"

local catalog = LrApplication.activeCatalog ()
local photo = catalog:getTargetPhoto ()

local settings = {
    CropConstrainToWarp = 0, 
    PerspectiveAspect = 0, 
    PerspectiveHorizontal = 33, 
    PerspectiveRotate = 0, 
    PerspectiveScale = 100, 
    PerspectiveVertical = 0, 
    PerspectiveX = 0, 
    PerspectiveY = 0}

LrTasks.startAsyncTask (function ()
    catalog:withWriteAccessDo ("Update", function ()
        photo:applyDevelopSettings (settings) 
        end)
    end)

 

 

Tested on LR 11.0.1 / Mac OS 11.6.

Bug Fixed
TOPICS
macOS , SDK , Windows

Views

805

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 1 Correct answer

Adobe Employee , Dec 13, 2021 Dec 13, 2021

Setting status to investigating

Status Started

Votes

Translate

Translate
3 Comments
Adobe Employee ,
Dec 13, 2021 Dec 13, 2021

Copy link to clipboard

Copied

Setting status to investigating

Rikk Flohr - Customer Advocacy: Adobe Photography Products
Status Started

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 14, 2022 Jun 14, 2022

Copy link to clipboard

Copied

The SDK will be updated later this week (June 13). The update contains a fix for this issue.  Please download and the latest version of your application via the Adobe Creative Cloud Application or your respective device app store.

If you do not see the update (Mac and Win) you can refresh your Creative Cloud App with the keyboard shortcut [Ctrl/Cmd]+[Alt/Opt]+[ R ]. 

 

Note: App store availability can take several days for the update to appear and be available. 

 

Thank you for your patience.

Rikk Flohr - Customer Advocacy: Adobe Photography Products
Status Fixed

Votes

Translate

Translate

Report

Report
LEGEND ,
Jun 18, 2022 Jun 18, 2022

Copy link to clipboard

Copied

LATEST

Confirmed this is fixed, thanks.

Votes

Translate

Translate

Report

Report