Skip navigation
Currently Being Moderated

Changing Develop Settings

Jun 13, 2012 1:48 PM

Tags: #lightroom #settings #preset #develop #getdevelopsettings

Hi peeps

 

There seems no way of changing a photo's develop settings except via applying a develop preset. is this true.

 

I've found

 

photo:getDevelopSettings()

 

but sadly nothing to

 

"addDevelopSettings()"

 
Replies
  • Currently Being Moderated
    Jun 13, 2012 2:10 PM   in reply to John Spacey

    John Spacey wrote:

     

    There seems no way of changing a photo's develop settings except via applying a develop preset. is this true.

     

    John - that is correct.

     

    I often have a plugin delete, upon startup, all temporary presets used last time around for on-the-fly adjustments. Rather than letting them accumulate forever, or deleting them immediately after use.

     

    Note: The preset name is what appears in the users's edit history list.

     

    R

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:03 PM   in reply to John Spacey

    John Spacey wrote:

     

    Oh well, a bit messy. I'm just writing a plug to change Noise Reduction values based upon the ISO of the photo. Creating 28 dev presets for ISO80 to ISO51200 was tedious

    I know what you mean, on both counts.

     

    In case you want to avoid writing yourself, you may be able to use my CollectionPreseter for that, or JF's Bulk Develop plugin.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:24 PM   in reply to John Spacey

    Might be worth looking at mine for example source code, even if after checking 'em out, you still want to write yourself .

     

    R

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 11:34 AM   in reply to John Spacey

    John Spacey wrote:

     

    Yeah JF's code is, errrr, "encrypted"

     

    Most people compile and/or encrypt before releasing to public, so the code is unreadable and/or protected.

     

    That's why I recommended looking at mine - it's in source format.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 5:16 PM   in reply to John Spacey

    Hi,

     

    I think Rob was suggesting that either his or Jeffrey's plugin might

    satisfy your need so you wouldn't need to bother writing a plugin at all.

     

    Alternatively check out Rob's source if you want to see how others have

    tackled the problem in code.  I expect you'll either need to use his

    framework with your plugin or translate from it to pure Lua/LR SDK to reuse

    the code, but it should give you an idea what is going on.

     

    FYI Jeffrey and I discussed this a while back and he uses the same basic

    technique discussed here so you aren't losing anything by not being able to

    check out his encrypted code.

     

    Thanks, Matt

    (Apologies for the brevity - sent from my Android)

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 16, 2012 6:51 PM   in reply to John Spacey

    John Spacey wrote:

     

    I wonder if Adobe can explain the reason?

     

    I'm sure they could, and doubt they will (what was the date of the last Adobe response on this forum? - hint: it wasn't in 2012).

     

    My guess: it was easier to wire plugins up to the preset mechanism than the develop slider handlers...

     

    Obviously, they could have used preset mechanism under the hood, and still supported methods like "change this setting or that", but I'm glad they didn't, since now it's clear - you need to roll develop settings into a package that will be handled as a preset, and it will block for catalog access...

     

    Cheers,

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 6:03 PM   in reply to Rob Cole

    Hi,

    John Spacey wrote:

     

    I wonder if Adobe can explain the reason?

     

    I think the simplest explanation here is contained in the API Reference entry for photo:getDevelopSettings();

     

         WARNING:The develop settings APIs are considered experimental. You should not depend on the contents of the settings table remaining compatible in future versions of Lightroom. The definitive list is the one shown in the UI.

     

    My interpretation: they chose to release the develop APIs because people wanted them, even though the APIs weren't as complete as they would have liked. So the APIs are known to have rough edges but I'd rather have something than nothing.

     

    Rob, I think there is something in what you say about this being a more efficient way to balance the ability to modify develop settings and blocking catalog access.

     

    Thanks,

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 1:20 AM   in reply to John Spacey

    Missing (for writing):

     

    ToneCurveEnable

    Crop settings

    Orientation

     

    Anybody know of any others?

     

    PS - Eric Scouten used to participate regularly in this forum, but Adobe participation ceased when Chet Drarvik took over.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 4:28 AM   in reply to John Spacey

    John Spacey wrote:

     

    I can't see how that "Warning" would explain why there isn't a setDevelopSettings() function though.   We can obvisouly change develop settings so the possible changing list of develop parameters as warned about isn't a block to that, we are just restricted to channelling settings through a develop preset.

    Directly explain it? No. The point I was trying to make was the Develop Settings APIs are considered experimental. I'm pretty sure they are the only part of the SDK marked as such. The design for them isn't 100% complete/finalised or they wouldn't have been marked as such. An incomplete/yet-to-be-finalised design could easily explain why an SDK function you'd expect to be there isn't.

     

    John Spacey wrote:

     

    Also AFAIC see the list of develop settings we can change via a develop preset is ciomplete for each Process Version

     

    I wonder if there's an adobe employee who we could ask about this?

    To be clear, you are saying the list of develop settings you can change is incomplete for the various Process Versions? Have you tried the missing ones and they don't work, or is it just that the doco doesn't mention them? I'm hoping its just a doco issue as that would be much easier for them to fix.

     

    Rob has already started a list of missing settings that can't be written. If you could add your observations to the list it would be appreciated. Then we can try to find out whether this is a doco issue, bug, or design limitation.

     

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 4:38 AM   in reply to Rob Cole

    Hi Rob,

    Rob Cole wrote:

     

    Missing (for writing):

     

    Thanks for starting the list.

     

    Are these items missing from the doco but work anyway, missing from the doco and don't work, or are present in the doco and don't work? Trying to work out how this gap is likely to be classified (bug, feature, or ?).

     

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 10:06 AM   in reply to Matt Dawson

    Not sure about doc (since Adobe said doc is not bottom-line, I wasn't really using it) - but they are the ones I remember that don't work.

     

    Background: once upon a time I was trying to figure out if it would be possible to save settings and restore them, e.g. virtual copy. These were ones that could not be restored to a photo, thus a photo could not be recreated, dev-wise from it's saved settings.

     

    Also, I have dev adjustment plugins that turned up these dev-settings as non-adjustable.

     

    Cheers,

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 2:17 PM   in reply to John Spacey

    John Spacey wrote:

     

    I haven't had chance to try them all yet, but I was assuming that if you could store the dev setting in a dev preset, then callign a dev preset via plugin code then you could apply it to a photo?

     

    I didn't follow that. I mean most dev settings can be applied as you've described, but a few are ineffective (the ones I mentioned, at least).

     

    ?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 4:59 PM   in reply to John Spacey

    Sorry John, I'm lost. Can you please restate the question, if there is one, or the statement if not a question? -thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 6:56 PM   in reply to John Spacey

    John Spacey wrote:

     

    I was assuming that if a develop setting can be written to a preset ( in LR itself ) then a plugin can also apply these settings as it can call a Dev preset.

     

    I assume that as well, although I haven't verified all cases. You can't enable/disable sections using reglar presets, but they can be set in preset applied by plugin. Actually, it wouldn't surprise me if it could be done using a hand-edited preset too, but haven't checked (there is no UI for it, in any case).

     

    Crop settings are clearly not settable in reglar preset: many forum posts requesting it.

     

    Orientation could be handled like a dev adjustment but isn't.

     

    Thanks,

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 8:00 PM   in reply to John Spacey

    Them are they, however I can't find a UI to support it, and last I checked EnableToneCurve did not work.

     

    ?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 6:38 AM   in reply to John Spacey

    Hi,

    John Spacey wrote:

     

    I was assuming that if a develop setting can be written to a preset ( in LR itself ) then a plugin can also apply these settings as it can call a Dev preset.

     

    Sounds like a reasonable assumption. But given Rob's feedback on what doesn't work, it seems the values accessible via a preset:getSetting() call might be a more accurate view of what can be set. Assuming you extrapolate and add the PV2012 equivalents to that list. I'm sure PV2012 support would have made it into the applyDevelopPreset() functionality but that part of the API Ref doesn't reflect this.

     

    John Spacey wrote:

     

    - I just noticed your small list above ....

     

    ToneCurveEnable

    Crop settings

    Orientation

     

     

    Would adobe class orientation as specifically a develop setting?  Crop settings should be, but then they can't be applied in a Dev Preset.

    I'm pretty sure orientation is treated as a metadata item rather than a develop setting. This would also contribute to the rotate feature not working for videos.

     

    The other two aren't listed in the fields supported by preset:getSetting() so it would seem their absence is by design.

     

    Matt

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points