1 person found this helpful
The SDK API won't let you change individual pixel values, which is what I think would be required to change the saturation of a pixel based on its luminosity.
The SDK does let you change the same develop settings you can change in the user interface (e.g. exposure), via photo:applyDevelopPreset(), the undocumented photo:applyDevelopSettings(), and LrDevelopController. But none of the sliders in the user interface would let you accomplish your end, so you can't do it with the SDK.
You could write an external editing application (e.g. in C++ or Swift) that provides such a feature for TIFFs. You'd interface it to LR as an "external editing plugin", like the Nik plugins. But I don't think this was what you're thinking of.
Manipulating images pixel by pixel by myself is out of my depth.
Thanks for the quick responce.
I wish Adobe would include these features in Lightroom or Camera RAW.
You can create a custom camera profile which allows you to replicate this for RAW images. See DNG SDK for details on the camera profiles.
I'm not a professional developer or proficient in C\C++. I wanted to use the luma v saturation near the end of my post processing workflow as an integrated part of Lightroom. If I had to choose whether to mess around with DNGs put the finishing touch on Resolve, I'd go for the later.
Again, thanks for the help.