Skip to main content
johnrellis
Legend
January 22, 2022

P: SDK: LR 11 photo:getDevelopSettings() doesn't return mask settings for photos from LR 10

  • January 22, 2022
  • 4 replies
  • 440 views

In LR 11, when photo:getDevelopSettings() is invoked on a photo with a graduated filter, radial filter, or an adjustment brush that was added in LR 10, getDevelopSettings() returns neither the LR 10 nor the LR 11 representation of those masks.  It should trigger the incremental update of the develop settings and return the LR 11 representation.

 

This is an issue for users of one of my most popular plugins, Any Filter, searching for photos with masks -- photos from LR 10 and earlier won't always be returned.

 

--------------------------------------------------------------------------------------------------------------------------------

To reproduce in LR 11.1:

 

1. Start LR 10.4 and make a new catalog, setting Catalog Settings > Standard Preview Size to 1024.

 

2. Import a raw with Build Previews: Standard, edit it, and add a Graduated Filter, Radial Filter, and Adjustment brush.

 

3. Go to Library Grid view (very important).

 

4. Use the Show Catalog Metadata plugin's Show command to verify that photo:getDevelopSettings() is returning values for the graduated filter, radial filter, and adjustment brush:

 

 

CircularGradientBasedCorrections = {--table: 2
    [1] = {--table: 3
        CorrectionActive = true, 
        ...
GradientBasedCorrections = {--table: 7
    [1] = {--table: 8
        CorrectionActive = true, 
        ...
PaintBasedCorrections = {--table: 19
    [1] = {--table: 20
        CorrectionActive = true, 
        ...

 

 

5. Exit LR 10.4.

 

6. Open that catalog in LR 11.1, causing it to get upgraded.

 

7. Use Show Catalog Metadata > Show to verify that photo:getDevelopSettings() is returning neither the 10.4 representation of the masks (as shown in step 4) nor the 11 representation.

 

8. Select the photo and do Library > Previews > Discard 1:1 Previews followed by Build 1:1 Previews. If it refuses to rebuild the 1:1 preview, take the photo into Develop and go back to Library.

 

9. Verify that Show Catalog Metadata > Show is now showing the 11 representation:

 

 

MaskGroupBasedCorrections = {--table: 9
    [1] = {--table: 10
        CorrectionActive = true, 
        ...

 

 

 

This topic has been closed for replies.

4 replies

johnrellis
Legend
April 12, 2022

I confirmed this is fixed, thanks.

Rikk Flohr_Photography
Community Manager
April 12, 2022

Updates to the Adobe Photography Products were released today and contain a fix for this issue. Please install the update via your Creative Cloud Desktop App or your respective App Store. 

 

Note: 

You may need to refresh the Creative Cloud App for desktop software to show an update available.  ([Ctrl/Cmd]+[Alt/Opt]+ [ R ])

For Mobile downloads, it may take several days for the update to appear in your respective App Stores.

 

Thank you for your patience. 

Rikk Flohr: Adobe Photography Org
Wolf Eilers
Inspiring
February 14, 2022

I'd like to confirm that John is correct in his anlaysis and agree that the getDevelopSettings() api should return a LrC 11 representation of all masks. At the moment there is no confidence that masking information returned is accurate since, as John notes, getDevelopSettings() may return neither the LrC 11 representation or earlier formats.

 

I'm forced to intitiate 1:1 preview deletions followed by a build before using the masking features in my plug-in -- an anoying and time consuming process.

 

The latest 11.2 SDK has not resolved the issue.

Rikk Flohr_Photography
Community Manager
January 24, 2022

Setting status - attaching bug number

Rikk Flohr: Adobe Photography Org