Copy link to clipboard
Copied
Hi. I want to write data to table fields, for example, registryId.
From API Reference Lightroom SDK 8.0:
photo:setRawMetadata( key, value )
Sets metadata for this photo.
- : (table) Both a Registry Item ID and a Registry Organization ID to record any registration of this item with a registry. Each element in the table is a table that is a structure named RegistryEntryDetail, as defined in the IPTC Extension spec.
But,
photo:setRawMetadata(("registryId")[1].RegItemId, 1)
not work...
I tried a lot of options, changing the position of brackets, quotes, but did not find any working(
Please tell me how to write data to a certain field in the table and overwrite it if it is already there.
Here's what a valid value for "registryId" looks like:
The value is an array of tables, each such table containing the keys RegItemId and RegOrgId. Here's an example of how to set "registryId":
local value = {{RegItemId = "Item 1", RegOrgId = "Org id 1"}}
photo:setRawMetadata ("registryId", value)
Copy link to clipboard
Copied
Here's what a valid value for "registryId" looks like:
The value is an array of tables, each such table containing the keys RegItemId and RegOrgId. Here's an example of how to set "registryId":
local value = {{RegItemId = "Item 1", RegOrgId = "Org id 1"}}
photo:setRawMetadata ("registryId", value)
Copy link to clipboard
Copied
Thanks!)))))