• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Exporting and importing Plugin Preferences

New Here ,
Nov 21, 2013 Nov 21, 2013

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

TOPICS
SDK

Views

681

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 21, 2013 Nov 21, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2013 Nov 21, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines