Adobe 65007312 Programming Guide - Page 36
Description, or Publish Service Provider
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 36 highlights
CHAPTER 3: Creating Export and Publish Services Defining an export service 36 The title and file entries are required. You can use the built-in function LOC and a ZString if you wish to localize the service's title; see details in Chapter 7, "Using ZStrings for Localization." The service definition script should return a table that contains: X A pair of functions that initialize and terminate your export service. X Settings that you define for your export service. X One or more items that define the desired customizations for the Export dialog. These types of customizations are defined: Z Restrict the built-in services offered by the Export dialog. Z Customize the Export dialog by defining new sections. X A function that defines the export operation to be performed on rendered photos (required). Here is an example of a table returned by a service definition script: return { startDialog = function( propertyTable ) ... end, endDialog = function( propertyTable, why ) ... end, exportPresetFields = { { key = 'myPluginSetting', default = 'Initial value' } }, showSections = { 'fileNaming', 'imageSettings' }, sectionsForBottomOfDialog = function( viewFactory, propertyTable ) ... end, processRenderedPhotos = function( functionContext, exportContext ) ... end } These are the specific items that can be in the table returned by the service definition script for an Export or Publish Service Provider: Item startDialog endDialog exportPresetFields processRenderedPhotos Description Initialization and termination functions for your plug-in; see "Initialization and termination functions for services" on page 38. A set of properties that you define for your plug-in that you want to be persistent between sessions. See "Remembering user choices" on page 57. These are added to the built-in settings defined by Lightroom; see "Lightroom built-in property keys" on page 59. A callback function that manages the rendering and subsequent handling of exported photos; see "Customizing the Export and Publishing Manager dialogs" on page 52.