Lightroom SDK: LrExportMenuItems - please allow specification of a function.

  • 2
  • Idea
  • Updated 7 years ago
Presently, each LrExportMenuItem requires an independent file to execute. I suggest an improvement to be able to specify a function within the file to execute, maybe with parameters. For example:

LrExportMenuItems = {
{
title = "My cool menu item #&1",
file = "mCool.lua",
function = "coolOne",
},
{
title = "My cool menu item #&2",
file = "mCool.lua",
function = "coolTwo",
},
}
or maybe:

LrExportMenuItems = {
{
title = "My cool menu item #&1",
file = "mCool.lua",
function = "uniCool",
parameters = { "type_1", "gratuitious-extra" },
},
{
title = "My cool menu item #&2",
file = "mCool.lua",
function = "uniCool",
parameters = { "type_2", "and-then-some" },
},
}

Or something like that.

That way we wouldn't have to create a new file to implement a new feature, just a new function. But, it would still be backward compatible.

Bonus Idea:
---------------
Be able to add items to the plugin menu programmatically.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes

Posted 7 years ago

  • 2

Be the first to post a reply!