Legend
June 8, 2026
P: SDK: Race condition with photo:applyDevelopPreset() and catalog:updateAISettings()
- June 8, 2026
- 2 replies
- 19 views
If a plugin calls catalog:updateAISettings() immediately after photo:applyDevelopPreset(), the application of the preset is ignored. This bug was introduced in LR 15.3, likely with the background processing of AI commands.
To reproduce on LR 15.3 / Mac OS 26.4.1:
1. Import the attached preset “_Update Bug.xmp”.
2. Put the attached file “updateaisettings-bug.txt” into the LR Scripts folder.
3. Go to Develop with a test photo.
4. Do Scripts > updateaisettings-bug. Observe that Exposure is not changed (incorrect -- it should change to 4).
5. Apply the preset “_Update Bug”. Observe that Exposure changes to 4 (correct).
A workaround is to call LrTasks.sleep (0.1) before calling catalog:updateAISettings().