Adobe 65007312 - Photoshop Lightroom Programmer's Manual page 188

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

Advertisement

C
10: Defining Metadata: A Walkthrough
HAPTER
5. The
metadataFieldsForPhotos
Add this first entry to the table:
metadataFieldsForPhotos = {
},
This is the simplest type of field. It does not have any of the properties that make it visible in the
Metadata panel, or modifiable by users. It is an internal field that a plug-in can use as private data.
Other plug-ins can also access such a field, but they cannot write to it.
6. Now we will add a field that will be public:
metadataFieldsForPhotos = {
},
7. To make this new field available to edit within the Lightroom Metadata panel, we need to add a title
and data type:
metadataFieldsForPhotos = {
},
The
title
specifying this property makes the field visible.
The
dataType
Because this is a simple string value, it will be shown in an editable text field. This property is optional,
and "string" is the default type, so the result is the same if you leave it out.
8. Add one more property:
metadataFieldsForPhotos = {
},
{
id = 'siteId',
},
{
id = 'siteId',
},
{
id = 'myString',
-- add properties
},
{
id = 'siteId',
},
{
id = 'myString',
title = LOC "$$$/MyMetadataSample/Fields/MyString=My String",
dataType = 'string',
},
property provides a localizable display string to be shown in the Metadata panel. Simply
property tells the Metadata panel how to display the property, so as to make it editable.
{
id = 'siteId',
},
{
id = 'myString',
title = LOC "$$$/MyMetadataSample/Fields/MyString=My String",
dataType = 'string',
searchable = true
},
table is where we define our new custom metadata fields.
Adding custom metadata 188

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop lightroom sdk 3.0

Table of Contents