Forum Replies Created

  • Tim Smith

    August 5, 2015 at 2:50 am in reply to: After Effects reading XMP image data via scripting

    So this is embarrassing…

    Seams that after a rebooting and running this script again this morning (in Australia) it’s working.

    Something must have been stuck in memory somewhere because I ran this exact same script yesterday on the same file and it threw back undefined every single time. Even after restarting AE and Extendscript multiple times.

    Now it’s returning the camera model like it’s suppose to.

    Rather annoying waste of time but good that the script works now!

    Thanks for being willing to help guys. Sorry if I’ve wasted your time.

    Cheers, Tim

  • Tim Smith

    August 5, 2015 at 2:06 am in reply to: After Effects reading XMP image data via scripting

    Thanks Walter.

    Here’s a sample image taken on iPhone that I’m playing with:
    https://dl.dropboxusercontent.com/u/44182853/IMG_5351.JPG

    I’m giving this another shot today too, hope I can get it going.

    Let me know how you go 🙂

  • Tim Smith

    August 5, 2015 at 12:52 am in reply to: After Effects reading XMP image data via scripting

    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.

  • Tim Smith

    August 3, 2015 at 6:28 am in reply to: Read exif/xmp data from photo

    Hi Dan,

    Curious if you know how, if it’s at all possible, to dump all the namespace URI’s contained in a files meta data?

    Seem to be having problems accessing certain namespace’s properties that I know exist.

    ….or if you know of the limitations to AE’s ability to access this information?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy