Skip to main content
Known Participant
November 3, 2014
Question

Pass values from menu to plugin scripts

  • November 3, 2014
  • 1 reply
  • 343 views

I wanted to operate plugin two mode  in single *.lua scripts,

I know how to tell in info.lua making two menus in single plugin,

LrLibraryMenuItems = {
{title = 'BLAH',
file = 'BLAH.lua',
enabledWhen = 'photosAvailable',
},
{title = 'BLAH foeced mode',
file = 'BLAH.lua',
enabledWhen = 'photosAvailable',
}

Is there way to pass parameters for lua scripts from info.lua?

how to obtain values in lua scripts?

This topic has been closed for replies.

1 reply

johnrellis
Legend
November 3, 2014

I don't think I fully understand your scenario.  But a plugin can easily read information from it's own Info.lua file by doing:

local info = require 'Info.lua'

and then accessing the contents of "info" (which is just a table).