|
 | Import XML from local file
by Pete Addington on May 8, 2012 at 3:44:25 pm |
I might have missed something obvious here, but I cant seem to find any example of someone using After Effects to load an XML file (although i see people are moving data to and fro in this format somehow)
I am writing a camera exporter from a 3d package. I could export the transform data as a javascript file, but I would prefer to export as XML and read this in to create the data in afx. Im not writing the file in AFX, just trying to read the data from one that is already created.
I see many examples of using javascript within a browser, but this is not relevant to what I am trying to do.
Should my approach be to open the xml file with the file.open command, read the contents to a string and then pass this to the extendscript xml class?
I'm new to javascript as of this week but I'm not new to programming. Im enjoying the idea of adding functionality to after effects though. thanks
| |