Run The Plug-In - Adobe 65007312 - Photoshop Lightroom Programmer's Manual

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

Advertisement

C
9: Getting Started: A Tutorial Example
HAPTER
10. Use
LrDialogs.presentModalDialog()
entries for the dialog
local result = LrDialogs.presentModalDialog(
{
}
)
11. To call the function when the script runs, add this at the bottom of the script:
MyHWLibraryItem.showCustomDialog()
12. Save your changes to the file.

Run the plug-in

Use these steps to run the plug-in and see how the menu items bring up the two dialogs:
1. In Lightroom, choose File > Plug-in Manager to show the Plug-in Manager dialog.
If you have not yet added this plug-in to Lightroom, click Add, navigate to the plug-in folder you
created, and click Add Plug-in.
If you added the plug-in earlier, reload it. Open the Plug-in Author Tools section, select the plug-in,
and click Reload Plug-in.
2. Choose File > Plug-in Extras > Hello World Dialog to show the predefined modal dialog created by
the
ExportMenuItem.lua
3. Click OK to dismiss the dialog.
4. Choose Library > Plug-in Extras > Hello World Custom Dialog to show the custom modal dialog
created by the
5. This example isn't very interesting yet, since no other controls are bound to data values. Click OK or
Cancel to dismiss, the dialog, and we will add some more complex bindings and behavior.
and the view hierarchy that defines the
title
title = "Custom Dialog",
contents = c, -- the view hierarchy we defined
script.
LibraryMenuItem.lua
to display the custom dialog. The argument is a table with
script:
Displaying a custom dialog 172
:
contents

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop lightroom sdk 3.0

Table of Contents