Copy link to clipboard
Copied
Hi all.
Today I wanted to create a script that resets all "Global Edits" but leaves all "Local Edits" untouched (Masking, Healing, etc...),
There is already a Preset that does it i.e "Zeroed" but it doesn't reset Crop and tis not updated since it doesn't reset Point Color nor Lens Blur (issue reported internally already).
Thus in order to achieve what I wanted I created a script using LrDevelopController.resetToDefault
I though found out that the documentation is not mentioning some settings that are required to actually be able to reset the image i.e.
effectsPanel
"VignetteAmount"
"VignetteMidpoint"
lensCorrectionsPanel
"AutoLateralCA"
"LensProfileEnable"
Maybe there are other entries missing but these seem most obvious.
@johnrellis nearly centranly knows and can add to my report.
I am nearly a newcomer to the SDK (zero software engineering skills) but I am very familiar with all LrC edits and how are represented/named internally AND I doubt any other new user would figure out easily that the necessary settings are missing form that list.
P.S.
Worth saying that so far I was able to reset all settings properly beside : Extended Point Curve & Extended RGB Channels, Point Color and Lens Blur.
Those dont' seem to be "resettable" using LrDevelopController.resetToDefault and I believe LrDevelopController.setValue must be used (I am not advanced enough to know how to do it yet)
The SDK documentation is not clear or informative about any of this.
.
Have something to add?