adobe / XMP-Toolkit-SDK

The XMP Toolkit allows you to integrate XMP functionality into your product or solution
BSD 3-Clause "New" or "Revised" License
205 stars 83 forks source link

Question: Inserting Localized Text Item Into Struct Field #60

Closed jwsinner closed 11 months ago

jwsinner commented 2 years ago

I've searched the repo and couldn't seem to find a straightforward answer to this.

According to IPTC specifications, ArtworkOrObject is a bag of ArtworkOrObjectDetails structs. Some of those details e.g. AOContentDescription or AOCreator are arrays of information within the ArtworkOrObjectDetails struct. What is the best way to go about setting the value of a struct field to a Bag or AltLang or inserting array items into the value portion of a struct field?

maupadhyay commented 1 year ago

Hi @jwsinner ,

This sample https://github.com/adobe/XMP-Toolkit-SDK/blob/e0955b272ab6035b2921fa2c649aca5ecfe5ab81/samples/source/CustomSchema.cpp might be useful to you. Please let me know if this resolves your query or you have any additional questions.