Creating an importable image without rendering?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

With text files it's easy to create a new file and write something into it, for example:

var document = new File("~/Desktop/test.txt");

if(!document.exists){
document.open("w");
document.write("Text.");
document.close();
}

I want to create a jpeg (or any still image) that I can import into After Effects in the same way. I can just change the file extension to .jpeg, but AE can't import it then. The file can be completely black, as long as it can import into AE. I need to create this temp file for use with other things, but I can't figure it out. Anyone?
Post Reply