Answered
Accessing hierarchical keywords within a plugin
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
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
Use photo:getRawMetadata ("keywords") to get the array of LrKeywords applied to the photo. Then call keyword:getParent() repeatedly to get the ancestor keywords.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.