Skip to main content
Known Participant
January 20, 2015
Question

Accessing per-layer metadata from plugin

  • January 20, 2015
  • 1 reply
  • 5346 views

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 has been closed for replies.

1 reply

Tom Ruark
Inspiring
January 20, 2015

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.

rixter123Author
Known Participant
January 21, 2015

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

Tom Ruark
Inspiring
January 21, 2015

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.