Adobe 65007312 Programming Guide - Page 22
Writing a Lightroom Plug-in, Writing standard plug-ins for Lightroom
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 22 highlights
2 Writing a Lightroom Plug-in The Lightroom SDK allows you to create plug-ins that customize the behavior of Lightroom in specific ways. Most types of plug-in share a common architecture, which is discussed in this chapter. X Web Gallery plug-ins use a different architecture; see Chapter 6, "Writing a Web-engine Plug-in." The Plug-in Manager dialog allows a user to load plug-ins from any location, enable and disable loaded plug-ins, and remove unused plug-ins. Your plug-in can customize the dialog by adding sections. See "Customizing plug-in load behavior" on page 30. Writing standard plug-ins for Lightroom The Lightroom SDK allows you to customize the behavior of Lightroom in specific ways using a standard plug-in (as opposed to a web-engine plug-in). The behavior implemented by your plug-in is provided by one or more Lua scripts. An information file installed in a standard plug-in folder identifies your plug-in scripts to Lightroom, and associates the plug-in with a unique name. X You can add items to the File, Library, or Help menus to start an operation. X Your plug-in can add a new export or publish destination with an Export Service Provider or Publish Service Provider. Such a service can also customize the Export or Publishing Manager dialog by adding and removing sections as appropriate for the destination when the user selects it. See "Creating an export or publish service" on page 35. X Your plug-in can intercept the export process with an Export Filter Provider, which can apply further processing to photos that the user has chosen to export. The post-process action that a filter defines is applied after Lightroom's initial rendering, and before the photos are sent to the final destination. Each filter can add a section to the Export dialog, in which the user can select options and set parameters. See "Adding an export post-process action" on page 41. X In addition to or instead of defining export customizations, your plug-in can define custom metadata fields for Lightroom. See Chapter 4, "Working with Metadata." Declaring the contents of a plug-in In addition to the Lua script or scripts that define your extension to Lightroom functionality, your plug-in must contain a file named Info.lua that describes the plug-in to Lightroom, using a Lua table of descriptive items. The table can or must include these items: LrSdkVersion LrSdkMinimumVersion Required The preferred version of the Lightroom SDK for this plug-in. Should be set to 3.0 for the current release; older plug-ins number may have a value of 1.3, 1.4, or 2.0. Optional number The minimum version of the SDK that this plug-in can use. If your plug-in works with Lightroom 2.0 but it also provides new features specific to Lightroom 3.0, set this value to 2.0 and LrSdkVersion to 3.0. Default is the value of LrSdkVersion. 22