Skip to main content
Participant
November 21, 2013
Question

Exporting and importing Plugin Preferences

  • November 21, 2013
  • 1 reply
  • 727 views

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

This topic has been closed for replies.

1 reply

Participant
November 21, 2013

Thanks for your answer, Rob (has been deleted?) Can you point me to a plugin that uses this?

cheers,

dirk

areohbee
Legend
November 21, 2013

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