Skip to main content
johnrellis
Legend
November 10, 2022
Question

Changes to the Lightroom 12.0 SDK

  • November 10, 2022
  • 1 reply
  • 348 views

Only a small number of changes in the LR 12.0 SDK compared to the LR 11.4 SDK:

 

Lightroom Classic SDK Programmers Guide

 

Correction of typos with LrCatalog:getChildCollections() and :getChildCollectionSets().

 

API Reference

 

LrCatalog

Correction of typos with LrCatalog:getChildCollections() and :getChildCollectionSets().

 

LrDevelopController

Changed methods:

decrement, increment, setValue:

A new boolean parameter "withClippingOn" was added to optionally show clipping.

 

addToCurrentMask, createNewMask, intersectWithCurrentMask, subtrackFromCurrentMask:

Adds additional mask subtypes "background", "objects", and "people".

 

New methods:

goToHealing, resetHealing:

These are the same as goToSpotRemoval() and resetSpotRemoval(), which are now deprecated because of the name change in the LR UI.

 

Deprecated methods:

goToSpotRemoval, resetSpotRemoval:

Use goToHealing() and resetHealing() instead.

 

LrFileUtils

Documentation corrected for the return value of createAllDirectories().

 

Undocumented Changes

 

No changes were found my automated scripts, other than changes to the undocumented LrAnalytics, which provides internal analytics of the app usage to Adobe.

 

 

 

 

 

This topic has been closed for replies.

1 reply

Nileshsinh Rathod
Participant
November 22, 2022

@johnrellis Do you have any idea about how to apply people masking from the SDK? When I try to apply the masking function, LR asks me to select people from the detection.

LrDevelopController.createNewMask( 'aiSelection', 'people' )

 

johnrellis
Legend
November 22, 2022

You can use photo:applyDevelopSettings() to apply the settings for a person mask. To discover what those settings should be, create a person mask on a photo and then dump out photo:getDevelopSettings().

 

But note that when you do this, or you apply a preset you've created in the Presets panel containing a person mask, LR will automatically convert the mask in the target photo to an "All People" mask, selecting all the persons present in the photo.  I haven't found any way around this.