Im trying to create a script that automates the "collect files" function for the watch folder and i have some problems. Maybe some of you can give me some tips.
I study what after effects is doing when i create a collected folder:
- its creating a new folder with the same name as the project
- its creating in this folder the after effects file, and two text files.
- (if you activate collect items then it will create a footage folder, but i dont need that)
One of these TXT Files is the RCF (render control file). It looks like it doesnt need the second TXT File for starting the render in the watch folder
Ok, so i thought, i would recreate these steps per script:
Creating a folder:
Code: Select all
var myFolder = new Folder(theFolder);
myFolder.create();
Saving the after Effects File into that folder:
Code: Select all
var myRenderSave = File(newFile);
app.project.save(myRenderSave);
Create the TXT File with the RCF informations:
Code: Select all
var myFilePath = "myFolder+"/"+newFile+"_RCF.txt";
var myFileTXT = new File (myFilePath);
myFileTXT.open("w");
myFileTXT.lineFeed = "windows";
myFileTXT.writeln("After Effects 11.0v1 Render Control File");
myFileTXT.writeln("max_machines=1");
myFileTXT.writeln("num_machines=0");
myFileTXT.writeln("init=0");
myFileTXT.writeln("html_init=0");
myFileTXT.writeln('html_name=""');
myFileTXT.close();
Everything is looking good so far. It looks like the folder AE is creating by "collecting files"... But it doesnt work!
Does the TXT File has to be in a special format? If yes, how can i do that?
Do i oversee something? if that works, it would be a great workflow optimizer for our production - Per one click i could send renderjobs to our renderserver.
thx for any tips!
Peter