Adobe 65007312 Programming Guide - Page 45
Defining a post-process action, Service Provider.
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 45 highlights
CHAPTER 3: Creating Export and Publish Services Adding an export post-process action 45 }, { title = "Lines", file = "lineAction.lua", id = "lines", requiresFilter = "main", }, }, Defining a post-process action An action definition script must return a table which can contain these entries. All entries are optional. postProcessRenderedPhotos A function that defines how this action processes the list of rendered photos that it receives. See "Defining post-processing of rendered photos" on page 46. Typically, only the main action in a group defines this function. shouldRenderPhoto A function that selects photos to be removed from the list of rendered photos that it receives. See "Removing photos from the export operation" on page 46. startDialog endDialog Initialization and termination functions that run when the action is selected or deselected in the Export dialog. See "Initialization and termination functions for services" on page 38. exportPresetFields A set of export preset settings that you define for your plug-in (in addition to the built-in settings defined by Lightroom). If provided, these fields are transferred from the Export dialog's property table to any export preset that is created when this post-process action is selected for the current Export session. See "Remembering user choices" on page 57. sectionForFilterInDialog A function that defines a new section in the Export dialog which appears when the action is selected, allowing the user to make choices that affect the operation. Any action in a group can define a dialog section. The function must conform to this prototype: sectionForFilterInDialog = function( viewFactory, propertyTable ) ... end, This function is defined in the same way as sectionsForTopOfDialog and sectionsForBottomOfDialog, except that the function returns a single section definition, not an array of section definitions; see "Adding custom sections to the Export or Publishing Manager dialog" on page 53. The section is always added at the bottom of the Export dialog, but above any "bottom" sections defined for the active Export Service Provider. The property table passed to this function is shared among all Export Filter Providers and Export Service Providers defined by this plug-in.