Copy link to clipboard
Copied
Hi,
I have created a plugin (LensTagger) that has internal presets and would like to create an export-import functionality to it. All the presets are saved in the Lightroom preference file like this:
op_Presets = {
LensNameValue = {
aperturevalue = "FST",
focal35 = "FL35",
focallength = "FL",
maxaperture = "AP",
},
["Some Lens"] = {
aperturevalue = "3.5",
focal35 = "15",
focallength = "7.5",
lensmodel = "Some Lens",
maxaperture = "3.5",
},
Preferabley they would be exported as csv or text file, so they are easily editable. My goal is to create Lens databases based on vendors so users can impory the Nikon database for instance. Is there an easy way of doing this? I have looked around, but it seems noone has ever done something like this and I am a somewhat unexperienced lua developer. Any hints will be appreciated.
cheers,
dirk
Copy link to clipboard
Copied
Thanks for your answer, Rob (has been deleted?) Can you point me to a plugin that uses this?
cheers,
dirk
Copy link to clipboard
Copied
I deleted when I realized I may have not read closely enough - one can serialize lua simply enough if that's what you want.
Do an internet search for "Rob Cole's Lightroom Plugins", pick one, and download, then find LuaText.lua module in 'System' folder of 'Framework' folder.
See :serialize method.
dofile will deserialize.
Rob