Skip navigation
Currently Being Moderated

LrKeyword getAttributes not returning all data

Feb 26, 2012 7:50 AM



I've been trying to use LrKeyword.getAttributes() to get the keyword flags as detailed in the SDK, but the only value returned is "includeOnExport". There also seems to be no way to get the values for "Export Containing Keywords" and "Export Synonyms". This is in LR3.6 . Can anyone confirm?




  • Currently Being Moderated
    Feb 26, 2012 8:31 AM   in reply to jimkeir

    Yes, others have observed the same symptoms.  In general, the SDK LrKeyword API is incomplete:


    - You can't get Export Containing Keywords and Export Synonyms.


    - You can't set those attributes for new or existing keywords.


    - You can't change the name, parent, or children of a keyword.


    Many users have complained about the limited ability in LR 3 (and now 4) to manage large keyword hiearchies, and a couple of plugin authors have observed that the incomplete API makes it impossible for a plugin to fill in that missing functionality.


    The SDK hasn't received much attention from Adobe since LR 3.0.  The LR 4 beta doesn't seem to have many SDK changes, but there's no documentation for it yet, and it could well change before the final release (one can always hope).

    Related threads:




    Mark as:
  • Currently Being Moderated
    Feb 26, 2012 1:09 PM   in reply to John R. Ellis

    Just tested LR 4 beta, and keyword:getAttributes() still doesn't return the additional attributes.

    Mark as:
  • Currently Being Moderated
    Jun 15, 2013 5:06 PM   in reply to John R. Ellis

    In LR 5, keyword:getAttributes() correctly returns "keywordName", "includeOnExport", and "synonyms".


    keyword:setAttributes() is able to set those attributes as well.


    Unfortunately, you're still not able to get or set "exportContainingKeywords" or "exportSynonyms".

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points