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

SDK: Curve Settings Issue with photo:applyDevelopPreset in LR SDK

Community Beginner ,
Oct 31, 2023 Oct 31, 2023

Copy link to clipboard

Copied

I've encountered an issue with the Adobe Lightroom SDK and the photo:applyDevelopPreset method, specifically related to curve settings not being consistently applied.

My plugin has the capability to copy settings from an anchor image and paste them onto selected images. To achieve this, I use photo:applyDevelopPreset(preset, _PLUGIN) to apply the anchor settings to multiple images. However, with a recent update to the SDK, I've noticed that curve settings are occasionally missing when pasting the settings onto some images. This inconsistency occurs randomly and doesn't affect every image.

I'm looking for insights and potential solutions to address this issue. If anyone has encountered a similar problem or has suggestions on how to ensure that curve settings are consistently applied when using photo:applyDevelopPreset

Screenshot 2023-10-30 143304.pngScreenshot 2023-10-30 143346.png

@John R Ellis I would greatly appreciate your input.

TOPICS
SDK

Views

169

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

LEGEND , Oct 31, 2023 Oct 31, 2023

LR introduced four new settings for representing tone curves: ExtendedToneCurvePV2012/Red/Green/Blue.  These appear to get added to photos incrementally as the LR UI accesses images.  The old settings ToneCurvePV2012/Red/Green/Blue are retained. The exact relationship between the old and new settings is undocumented and not clear.

 

So you'll want to ensure that the new settings are copied as well as the old. Also, ensure that the setting EnableToneCurve is copied. There was a bug a couple three r

...

Votes

Translate

Translate
LEGEND ,
Oct 31, 2023 Oct 31, 2023

Copy link to clipboard

Copied

LATEST

LR introduced four new settings for representing tone curves: ExtendedToneCurvePV2012/Red/Green/Blue.  These appear to get added to photos incrementally as the LR UI accesses images.  The old settings ToneCurvePV2012/Red/Green/Blue are retained. The exact relationship between the old and new settings is undocumented and not clear.

 

So you'll want to ensure that the new settings are copied as well as the old. Also, ensure that the setting EnableToneCurve is copied. There was a bug a couple three releases ago where presets weren't getting that set when they got created by the UI. It's not clear how you are creating the presets the plugin is using, but verify that EnableToneCurve is getting copied.

 

"My plugin has the capability to copy settings from an anchor image and paste them onto selected images."

 

Is there a particular reason the plugin uses photo:applyDevelopPreset() rather than photo:applyDevelopSettings()?  I think the former is used much less than the latter, and thus it may have more undiscovered bugs.  (In general, SDK methods don't get a lot of pre-release QA.) I have several plugins that rely on photo:applyDevelopSettings(), so I know it gets "tested" a lot.

Votes

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