Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

file.write(string) won't work in After Effects CC?

$
0
0

Hi!

 

This script working perfectly in AE CS6:

 

var newContent = '<Project author="Donald">';
newContent += '\n<Start>' + "starttime" + '</Start>';
newContent += '\n</Project>';try{     var data = new XML ( newContent );     var string = data.toXMLString();     filePath = "E:/test.xml";     var file = new File (filePath);     file.open("w");     file.write(string);     file.close();     alert("DONE for " + String (file));     }catch (error) { alert("Error!"); }

 

But stop working in After Effects CC on step:  file.write(string);

 

Can you show me the way how to make it work please?

 

Thank you in advance!


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>