Lightroom SDK: catalog:batchGetRawMetadata - unexpected format for 'customMetadata'.

  • 2
  • Problem
  • Updated 7 years ago
Unlike all other metadata items, the format returned by batchGetRawMetadata is different for customMetadata than what would be returned by getRawMetadata for a photo.

(there is no sourcePlugin field - instead metadata field names are prefixed with sourcePlugin "id").

Either the documentation or the code should be changed to match.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 7 years ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3589 Posts
  • 928 Reply Likes
I just tripped over this. The format returned by batchGetRawMetadata() is more convenient for clients -- it is a simple table mapping fully qualified "plugin-id.field-id" to values, rather than an array of triples {sourcePlugin, id, value}.

If this changes in a future release, I hope the release notes will call it out, since there are plugins depending on the format of the returned value.