Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Extract XMP metadata from After Effects Project and Comps.

Explorer ,
Mar 01, 2018 Mar 01, 2018

Hi,

I've successfully retrieved XMP metadata from a custom Project schema. Like this:

var proj = app.project;

var customMetadataSet = "Starz";

var customMetadataField = "Episode";

if(ExternalObject.AdobeXMPScript == undefined) {

    ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');

}

var metaData = new XMPMeta(proj.xmpPacket);

var schemaNS = XMPMeta.getNamespaceURI(customMetadataSet);

if(schemaNS == "" || schemaNS == undefined) {

    alert("no custom metadata named: " + customMetadataSet);

} else {

    var metaValue = metaData.getProperty(schemaNS, customMetadataField);

    if(!metaValue) {

        alert("no custom field named: " + customMetadataField + " In set: " + customMetadataSet);

    } else {

        alert(customMetadataField+ ": " + metaValue.value);

    }

}

Screen Shot 2018-03-01 at 4.29.55 PM.png

But now I have 2 questions. 

  1. How do I get Project XMP metadata from Dublin Core or Basic set?
  2. How do I get XMP metadata from a selected Comp and the Dynamic Media set?

Thanks for any insight.

Kelly Anderson

Starz - A Lionsgate Company

363
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 01, 2018 Mar 01, 2018
LATEST

Kelly, you will likely get more traction and a positive experience by posting your question here - After Effects Scripting

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines