Adobe 65007312 - Photoshop Lightroom Programmer's Manual page 119

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

Advertisement

C
6: Writing a Web-engine Plug-in
HAPTER
Within the predefined
defined by the plug-in. Within each size class, however, there are a set of predefined properties such as
and
width
Model properties can have simple number, string or color values, but to make a property dynamic, you can
make the value a function definition. See
These are the predefined properties for the
appearance.cssClass.cssProp
appearance.cssClass.cssID
photoSizes.sizeClass.property
width
height
maxWidth
maxHeight
metadataExportMode
tracking
photoSizes
.
height
section, the size-class names (in this example,
"Creating a dynamic data model" on page
table:
model
For an HTML gallery, entries in the
available in CSS form automatically, if they follow the correct
convention. Specify each key is in this format:
[ "appearance.cssClassName.cssPropertyName" ] = value
In addition, for each unique name, you must also add an entry
that tells Lightroom what CSS selector to use for that name, in this
form:
[ "appearance.cssClassName.cssID" ] = selectorName
For example, to control the background color of all elements that
belong to CSS class
myClass
of red, add these two entries to the model:
[ 'appearance.myClass.background-color' ] = "#ff0000",
[ 'appearance.myClass.cssID' ] = '.myColor',
These entries specify size classes of rendered JPEGs Lightroom
should create. Some galleries might have only one size, such as a
thumbnail-only gallery, but typically a gallery has layers with
different image sizes (such as thumbnail, small, full-size). The
size-class names are defined by your plug-in.
For each named size class, you can specify properties; for example:
[ "photoSize.small.width" ] = 50,
Each size class has these properties:
,
—The size in pixels, as chosen by the user
width
height
,
maxWidth
maxHeight
metadataExportMode
'copyright' or 'all' .
—Binds to the image-size slider in the control
tracking
panel, so that the image can be resized interactively during
preview. Lightroom sets this to true while resizing is in
progress.
Defining the data model 119
large
124.
section are
appearance
, and provide an initial default value
—The largest allowed size in pixels
—What metadata to include, either
and
) are
thumb

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop lightroom sdk 3.0

Table of Contents