Lightroom SDK (4.4RC?): photo:getRawMetadata( 'customMetadata' ) returns nil if "Reload plug-in on each export" is checked.

  • 1
  • Problem
  • Updated 5 years ago
This is repeatable (see title).

This couldn't possibly have always been like this, but it's like it now.

(works as expected if "Reload plug-in on each export" is un-checked.

catalog:batchGetRawMetadata( { photo }, { 'customMetadata' } ) -- works fine regardless.


*** Will somebody please confirm they do or don't see this. This is a fairly serious bug for plugins, more serious bug for plugin developers, since most users don't enable reload, still... Induced in 4.4RC?


Workaround: use batch mode instead, and beware of different data format returned for custom metadata in batch vs. non-batch mode.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 372 Reply Likes

Posted 5 years ago

  • 1
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 372 Reply Likes
Caveat if attempting to use batch mode as workaround:

Unlike photo:getRawMetadata( 'customMetadata' ), catalog:batchGetRawMetadata( { photo }, { 'customMetadata' } ) will not return any entries for plugins unless at least one data item is non-blank.