Getting Started: A Tutorial Example; Creating An Export Plug-In; Create The Information File - Adobe 65007312 - Photoshop Lightroom Programmer's Manual

Mac
Hide thumbs Also See for 65007312 - Photoshop Lightroom:
Table of Contents

Advertisement

9

Getting Started: A Tutorial Example

This chapter will help you get started with extending Lightroom's Export behavior by walking through the
creation of the simple Hello World plug-in. This plug-in adds menu items to the File and Library menus,
and defines dialog boxes that are displayed when the menu items are selected. The plug-in also
demonstrates how to output and view trace information for debugging and development.
This chapter shows how to build plug-ins that extend the Export functionality of Lightroom. The concepts
and techniques are explained in more detail in
Additional features you can add using the same framework are demonstrated in
Metadata: A
Web Gallery plug-ins, which use a different framework, are demonstrated in
Plug-ins: A Tutorial

Creating an export plug-in

You can place a plug-in folder anywhere, and notify Lightroom of its location using the Plug-in Manager. A
plug-in must be packaged for delivery within a single folder, with the suffix
you can use the suffix
helloworld.lrdevplugin

Create the information file

1. Create a text file and save it as
You must describe your plug-in to Lightroom by creating an
plug-in folder. This script must return a table that describes the plug-in to Lightroom.
2. Edit the script in the information file to return a table. This table must contain the version number for
the SDK and a unique string to identify the plug-in.
Add the following code to the
return {
LrSdkVersion = 3.0,
LrToolkitIdentifier = 'com.adobe.lightroom.sdk.helloworld',
}
3. Add another entry to the returned table to create a menu item in the Lightroom File menu.
Place the following code after the
LrExportMenuItems = {
title = "Hello World Dialog", -- The display text for the menu item
file = "ExportMenuItem.lua", -- The script that runs when the item is selected
},
(This entry adds only one menu item, so it defines a single table, rather than a table of tables.)
4. Add another entry to the returned table to create a menu item in the Lightroom Library menu.
Walkthrough. "
Example."
. Thus, the Hello World plug-in will be placed in the folder
.lrdevplugin
.
helloworld.lrdevplugin/Info.lua.
Info.lua
LrToolkitIdentifier
Chapter 3, "Creating Export and Publish
Info.lua
file:
entry:
Services. "
Chapter 10, "Defining
Chapter 11, "Web Gallery
. For development,
.lrplugin
file and placing it in your
168

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop lightroom sdk 3.0

Table of Contents