Adobe 65007312 Programming Guide - Page 25

publish service is chosen. See, string, optional: The name of

Page 25 highlights

CHAPTER 2: Writing a Lightroom Plug-in Writing standard plug-ins for Lightroom 25 LrExportFilterProvider LrExportServiceProvider Optional table of tables Adds one or more new export filters, which can process photos before they are rendered for the export destination. Each item is a table with these entries: title (string): The display name of the filter. file (string): The name of the Lua file (filter definition script) to be executed when the filter is chosen. See "Adding an export post-process action" on page 41. id (string): A unique identifying string for this filter. requiresFilter (string, optional): The identifier for another filter that must be used with this one. Can be combined with other services (export services, custom metadata) or can be the only service provided by the plug-in. Ignored in any Lightroom version older than 2.0. Optional table of tables Adds one or more new export destinations or publish service providers. Each item is a table with these entries: title (string): The display name of this export destination. file (string): The name of the Lua file (service definition script) to be executed when the export destination or publish service is chosen. See "Defining an export service" on page 35. builtInPresetsDir (string, optional): The name of a subdirectory in the plug-in directory that contains predefined export settings values. This must be a simple folder name; it cannot contain any path-significant characters, such as slashes. Lightroom preset files are identified by the .lrtemplate extension. (Publish services are not associated with presets.) id (string, optional): A unique identifier for this export service. If none is provided, a simple consecutive number value (1, 2, 3...) is assigned. Can be combined with other services (export filters, custom metadata) or can be the only service provided by the plug-in.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

C
HAPTER
2: Writing a Lightroom Plug-in
Writing standard plug-ins for Lightroom
25
LrExportFilterProvider
Optional
table of
tables
Adds one or more new export filters, which can process
photos before they are rendered for the export destination.
Each item is a table with these entries:
title
(string): The display name of the filter.
file
(string): The name of the Lua file (
filter definition
script
) to be executed when the filter is chosen. See
“Adding an export post-process action” on page 41
.
id
(string): A unique identifying string for this filter.
requiresFilter
(string, optional): The identifier for
another filter that must be used with this one.
Can be combined with other services (export services,
custom metadata) or can be the only service provided by
the plug-in.
Ignored in any Lightroom version older than 2.0.
LrExportServiceProvider
Optional
table of
tables
Adds one or more new export destinations or publish
service providers.
Each item is a table with these entries:
title
(string): The display name of this export
destination.
file
(string): The name of the Lua file (
service definition
script
) to be executed when the export destination or
publish service is chosen. See
“Defining an export
service” on page 35
.
builtInPresetsDir
(string, optional): The name of a
subdirectory in the plug-in directory that contains
predefined export settings values. This must be a
simple folder name; it cannot contain any
path-significant characters, such as slashes.
Lightroom preset files are identified by the
.lrtemplate
extension. (Publish services are not
associated with presets.)
id
(string, optional): A unique identifier for this export
service. If none is provided, a simple consecutive
number value (1, 2, 3...) is assigned.
Can be combined with other services (export filters,
custom metadata) or can be the only service provided by
the plug-in.