"Export Presets" option saves all the settings. Inside the settings-txt is "Presets={...}". How is the preset UUID generated?

237 views
Skip to first unread message

Tim

unread,
Jun 26, 2018, 6:37:47 AM6/26/18
to MIDI2LR
Hello,

in the older versions of Lightroom Classic CC the Presets-part looked e.g. like this:
Presets={"C21C61DF-3B96-461D-B3D5-36EA42FD13D9"}

This UUID used in presets was referring to the uuid entry in the Lightroom template preset file, e.g. "*.lrtemplate" in the "Develop Presets folder" (identical UUIDs).

Sample entry of *.lrtemplate file:
uuid = "C21C61DF-3B96-461D-B3D5-36EA42FD13D9",


In the newer Lightroom Classic CC versions the format of the Develop presets got of course changed to XMP (and moved into the "CameraRAW" folder).

I compared now my new exported Midi2LR settings entry with the UUID in the new XMP file(s) and they don't match anymore.

E.g.: XMP entry:
   crs:UUID="1A21EB794406EB412DEEDCB25C3A2C55"

Midi2LR settings file:
Presets={"C5D2D40667E1425BFED1165072B203B7"}

My question is: Where does midi2lr get the UUID from or is it generating it's own UUID? If yes how?
Why am I asking this: I have multiple camera preset specific midi2lr-settings files which I use in rotation (which use different Develop Presets for different Cameras). So in case I changed something in one settings file I could automatically via a script grab the UUIDs out of the develop preset *.lrtemplate files and therefore create automatically the remaining settings files.

I know it's a very specific question but I hope someone can give me a hint.

Thanks.

Best
Tim

Ernst Bokkelkamp

unread,
Jun 26, 2018, 2:24:03 PM6/26/18
to MIDI2LR
The answer is in the SDK under

Class LrDevelopPreset


This class provides access to a develop preset, which stores persistent develop settings.

Access the functions and properties from the object. Retrieve the objects for all the presets at the root of the hierarchy by calling LrApplication.developPresetFolders().

Retrieve objects from the parent folder using LrDevelopPresetFolder.getDevelopPresets().

Class LrDevelopPreset

This class provides access to a develop preset, which stores persistent develop settings.

Access the functions and properties from the object. Retrieve the objects for all the presets at the root of the hierarchy by calling LrApplication.developPresetFolders().

Retrieve objects from the parent folder using LrDevelopPresetFolder.getDevelopPresets().

Summary

Retrieves the file path of this preset.
Retrieves the name of this preset.
Retrieves the parent folder of this preset.
Retrieves the settings for this preset.
Retrieves the unique identifier of this preset.
Reports the type of this object.

Tim

unread,
Jun 27, 2018, 12:55:01 PM6/27/18
to MIDI2LR
Wonderful, thank you, Ernst.

Best
Tim
Reply all
Reply to author
Forward
0 new messages