Skip to main content
Known Participant
Jan 20, 2015 9:32 AM UTC
Question

Accessing per-layer metadata from plugin

Hello,

I can access the document-level metadata of a PSD file (as done in the Propertizer sample plugin in the SDK) with something like this:

Handle h = NULL;

OSErr error = sPSProperty->getPropertyProc(kPhotoshopSignature, 'xmpd', 0, NULL, &h);

Is there a way to access per-layer metadata from a C++ plugin?

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

16 replies

Tom Ruark
Inspiring
Jan 20, 2015 7:01 PM UTC

You cannot get to the per layer metadata vie the Properties suite. You will need to use an automation plugin and access the classLayer and the "XMPMetadataAsUTF8" string.

Translate
rixter123Author
Known Participant
Jan 21, 2015 3:43 AM UTC

Thanks! Is it not possible to get this in an Export plugin?

Translate
Tom Ruark
Inspiring
Jan 21, 2015 3:57 PM UTC

It is not possible in Export either. You need an automation plug-in type. You could have an automation plug-in listen to "your export" event and then send out the XMP data for each layer.

Translate