Skip to main content
Participant
February 29, 2016
Answered

Accessing hierarchical keywords within a plugin

  • February 29, 2016
  • 1 reply
  • 671 views

Hello

with photo:getFormattedMetadata("keywordTags") or photo:getFormattedMetadata("keywordTagsForExport") I can get keywords of a photo. But how can I get the hierarchical keywords?

Thank you

This topic has been closed for replies.
Correct answer johnrellis

Use photo:getRawMetadata ("keywords") to get the array of LrKeywords applied to the photo.  Then call keyword:getParent() repeatedly to get the ancestor keywords.

1 reply

johnrellis
johnrellisCorrect answer
Legend
February 29, 2016

Use photo:getRawMetadata ("keywords") to get the array of LrKeywords applied to the photo.  Then call keyword:getParent() repeatedly to get the ancestor keywords.

wima75Author
Participant
February 29, 2016

Thank you.