
Champion
•
5.8K Messages
•
100.4K Points
Lightroom SDK: photo:getDevelopSettings() returns incorrect value after Sync Settings
After you synchronize Lens Profile Corrections from one photo to many other photos, photo:getDevelopSettings() will incorrectly return a nil value for "LensProfileName". Only after you scroll Library grid view to show a photo's thumbnail will photo:getDevelopSettings() return the correct value. (Tested on LR CC 2015.1.1 / OS X 10.10.4.)
To reproduce:
1. Download this folder of 50 test pics: https://dl.dropboxusercontent.com/u/2....
2. Make a new catalog.
3. Turn off Automatically Write Changes Into XMP.
4. Import the 50 test pics.
5. Arrange LR's window and thumbnail size so that Library grid view shows about 6 thumbnails.
6. Select the first pic.
7. Go to Develop, set Lens Corrections > Enable Profile Corrections, and make sure the profile is "Adobe (iPhone 6...)".
8. Go back to grid view.
9. Do Edit > Select All and then Sync Settings, with only Lens Profile Corrections and Process Version selected.
10. Run the script "countlensprofile.lua" (in the same folder as the test pics).
11. Observe that the script reports only 6 or so pics with non-nil LensProfileName.
12. Scroll down one screenful of thumbnails. Wait until the metadata status badge in the upper-right corner has been updated (changes from "..." to a down-arrow).
13. Re-run the script, and observe that it reports 6 more or so pics with non-nil LensProfileName.
14. Repeat steps 12 and 13 until the script reports all 50 pics have non-nil LensProfileName.
Note that there was a similar bug with Process Version 2012 develop settings in a catalog converted from an older version of LR: http://feedback.photoshop.com/photosh.... With that bug, however, it wasn't necessary to scroll grid view to force getDevelopSettings() to return the correct value -- you just had to invoke it multiple times. But perhaps they have similar architectural roots in some kind of on-demand transformation of the representation of develop settings.
To reproduce:
1. Download this folder of 50 test pics: https://dl.dropboxusercontent.com/u/2....
2. Make a new catalog.
3. Turn off Automatically Write Changes Into XMP.
4. Import the 50 test pics.
5. Arrange LR's window and thumbnail size so that Library grid view shows about 6 thumbnails.
6. Select the first pic.
7. Go to Develop, set Lens Corrections > Enable Profile Corrections, and make sure the profile is "Adobe (iPhone 6...)".
8. Go back to grid view.
9. Do Edit > Select All and then Sync Settings, with only Lens Profile Corrections and Process Version selected.
10. Run the script "countlensprofile.lua" (in the same folder as the test pics).
11. Observe that the script reports only 6 or so pics with non-nil LensProfileName.
12. Scroll down one screenful of thumbnails. Wait until the metadata status badge in the upper-right corner has been updated (changes from "..." to a down-arrow).
13. Re-run the script, and observe that it reports 6 more or so pics with non-nil LensProfileName.
14. Repeat steps 12 and 13 until the script reports all 50 pics have non-nil LensProfileName.
Note that there was a similar bug with Process Version 2012 develop settings in a catalog converted from an older version of LR: http://feedback.photoshop.com/photosh.... With that bug, however, it wasn't necessary to scroll grid view to force getDevelopSettings() to return the correct value -- you just had to invoke it multiple times. But perhaps they have similar architectural roots in some kind of on-demand transformation of the representation of develop settings.
Responses
nick_crossley_7413554
3 Messages
•
80 Points
6 y ago
0
0
todd_shaner_6660895
Champion
•
2.4K Messages
•
38.6K Points
6 y ago
Would that reveal the issue?
0
0
John_R_Ellis
Champion
•
5.8K Messages
•
100.4K Points
6 y ago
0
0
todd_shaner_6660895
Champion
•
2.4K Messages
•
38.6K Points
6 y ago
0
0
nick_crossley_7413554
3 Messages
•
80 Points
6 y ago
3
0
nanya_pinnacle
9 Messages
•
226 Points
5 y ago
Probably the same error.
0
0