Thanks for the reply Dave.
The idea is to access camera information from images and use it later as a variable within the script.
I know that the information is there as I can see it in PS/Bridge.
I’ll post the same question that I asked over on AE forums just in case you have any thoughts about it:
—–From AE Forum—————–
I’ve been trying to get the code below to work and it keeps throwing an error “Undefined is not an object.”
if (ExternalObject.AdobeXMPScript == undefined) {
ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
}
var metaFile = File.openDialog("Select file to import");
var xmpFile = new XMPFile(metaFile.fsName, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_READ);
var xmp = xmpFile.getXMP();
alert(xmp.getProperty(XMPConst.NS_TIFF, "Model").toString()); //throws error "Undefined is not an object"
xmpFile.closeFile();
metaFile.close();
Is there something key missing or that I don’t understand?
———————-
Thanks in advance for your help.