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

SDK reset / revert all develop settings / adjustments

Participant ,
May 17, 2022 May 17, 2022

Copy link to clipboard

Copied

What is the best way to reset / revert all develop settings from photos from the SDK.

 

I know that there is the LrDevelopController.resetAllDevelopAdjustments(), but I don't like the idea to make photos active. The user might interfere and then the outcome would be highly unwanted.

TOPICS
SDK

Views

100

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 , May 17, 2022 May 17, 2022

You could display a modal progress bar (LrDialogs.showModalProgressDialog) while processing the photos -- that would prevent the user from doing anything.

 

You could use photo:applyDevelopSettings() to change all of the develop settings to 0.  But this wouldn't be the same as the Reset button, since Reset sets the photos values to the default settings for that photo, which depends on the settings Preferences > Presets, and there's no SDK method for accessing those settings.

Votes

Translate

Translate
LEGEND ,
May 17, 2022 May 17, 2022

Copy link to clipboard

Copied

LATEST

You could display a modal progress bar (LrDialogs.showModalProgressDialog) while processing the photos -- that would prevent the user from doing anything.

 

You could use photo:applyDevelopSettings() to change all of the develop settings to 0.  But this wouldn't be the same as the Reset button, since Reset sets the photos values to the default settings for that photo, which depends on the settings Preferences > Presets, and there's no SDK method for accessing those settings.

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