Adobe 65007312 Programming Guide - Page 41

Adding an export post-process action, Inserting and removing actions

Page 41 highlights

CHAPTER 3: Creating Export and Publish Services Adding an export post-process action 41 Provider; for details of how to define these items and what they do, see the API Reference documentation and the Flickr plug-in. Adding an export post-process action An Export Filter Provider is a script that allows you to modify a photo after Lightroom performs the initial rendering, but before it is passed to it final export destination, by defining a post-process action. A post-process action can modify the rendered images, or can suppress the export of certain photos, based on any criteria that you define. The script is identified by the LrExportFilterProvider entry in the plug-in's Info.lua file. A single SDK export plug-in can define one or more Export Filter Providers, one or more Export Service Providers, or both. In any given export session, there must be exactly one Export Service Provider, but there can be any number of post-process actions (or none). A single Export Filter Provider can define multiple actions. Post-process actions are executed in a specific sequence, partly determined by user choices. If you set up a dependency using the requiresFilter option, the sequence of execution honors that dependency. While Export Service Providers can add multiple sections at either the top or the bottom of the Export dialog, each post-process action can provide only one section for the dialog, which is always inserted after Lightroom's built-in sections, and before any "bottom" sections defined by the Export Service Provider. Export Filter Providers cannot define presets of their own, but can be included in an Export Service preset; see "Creating an export or publish service" on page 35. A post-process action is inserted between Lightroom's initial rendering of photos and the writing of the rendered image files to their destination (either the default destination, or one provided by a plug-in's export service). A post-process action (or set of actions) can be applied to photos that are being exported to any destination; that is, an Export Filter Provider does not need to be part of the same plug-in that provides the export service. For details, see "How post-process actions are executed" on page 47 Inserting and removing actions When any plug-in defining a post-process action is loaded, the action appears in the Post-Process Actions section of the Export dialog, on the left below the Presets section. When you open the plug-in, the individual actions defined by the plug-in appear as choices below it. When you select an action, the Insert button is enabled, allowing you to insert the action into the processing queue. (You can also insert an action by double-clicking it.)

  • 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
3: Creating Export and Publish Services
Adding an export post-process action
41
Provider; for details of how to define these items and what they do, see the API Reference documentation
and the Flickr plug-in.
Adding an export post-process action
An
Export Filter Provider
is a script that allows you to modify a photo after Lightroom performs the initial
rendering, but before it is passed to it final export destination, by defining a
post-process action
. A
post-process action can modify the rendered images, or can suppress the export of certain photos, based
on any criteria that you define. The script is identified by the
LrExportFilterProvider
entry in the
plug-in’s
Info.lua
file.
A single SDK export plug-in can define one or more Export Filter Providers, one or more Export Service
Providers, or both. In any given export session, there must be exactly one Export Service Provider, but
there can be any number of post-process actions (or none). A single Export Filter Provider can define
multiple actions. Post-process actions are executed in a specific sequence, partly determined by user
choices. If you set up a dependency using the
requiresFilter
option, the sequence of execution honors
that dependency
.
While Export Service Providers can add multiple sections at either the top or the bottom of the Export
dialog, each post-process action can provide only one section for the dialog, which is always inserted after
Lightroom's built-in sections, and before any "bottom" sections defined by the Export Service Provider.
Export Filter Providers cannot define presets of their own, but can be included in an Export Service preset;
see
“Creating an export or publish service” on page 35
.
A post-process action is inserted between Lightroom's initial rendering of photos and the writing of the
rendered image files to their destination (either the default destination, or one provided by a plug-in’s
export service). A post-process action (or set of actions) can be applied to photos that are being exported
to any destination; that is, an Export Filter Provider does not need to be part of the same plug-in that
provides the export service.
For details, see
“How post-process actions are executed” on page 47
Inserting and removing actions
When any plug-in defining a post-process action is loaded, the action appears in the Post-Process Actions
section of the Export dialog, on the left below the Presets section. When you open the plug-in, the
individual actions defined by the plug-in appear as choices below it. When you select an action, the Insert
button is enabled, allowing you to insert the action into the processing queue. (You can also insert an
action by double-clicking it.)