LIGHTROOM SDK: No way to set/get Export Containing Keywords, Export Synonyms

  • 3
  • Problem
  • Updated 5 years ago
  • (Edited)
In LR 5, keyword:getAttributes() doesn't return the settings for Export Containing Keywords and Export Synonyms, and keyword:setAttributes() doesn't allow you to set those values (at least, when I tried "exportContainingKeywords = false" and "exportSynonyms = false").

Many users have complained that there is no way to set those attributes for all their keywords at once. Fixing this simple bug would allow a plugin to satisfy all those users.
Photo of John R. Ellis

John R. Ellis, Champion

  • 4790 Posts
  • 1319 Reply Likes

Posted 7 years ago

  • 3
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 391 Reply Likes
Semi-workaround for meantime: use SQLiteroom, which has option to clear "export containing keywords" upon startup. To modify to also clear "export synonyms", add

, includeSynonyms=0

to SQL statement (on first line, i.e. line before the semi-colon, so final script:

update AgLibraryKeyword set includeParents=0, includeSynonyms=0

Photo of John Ellis

John Ellis

  • 117 Posts
  • 12 Reply Likes
This problem still exists in LR 6.0.1 / OS X 10.10.3.

In addition, though getAttributes() will return the keywordType ("person" or ""), setAttributes() can't set the keywordType.