boilerplate render pipeline
I figured out the answer to the question that I added into the answer to the footage properties post.
With the goal of loading a video and processing it in batch, I had gotten this far:
var footage = app.project.importFile(new ImportOptions(File("c:\\some.avi")));
var comp = app.project.items.addComp(footage.name, footage.width, footage.height, footage.pixelAspect, footage.duration, footage.frameRate);
var layer = comp.layers.add(footage);
layer.openInViewer();
This loads footage, creates a suitable composition and adds the video to a layer. I wasn't sure how to then get it into the timeline. There is just on more step:
comp.openInViewer();
Do you know of a skeleton render pipeline either all extendscript, or perhaps a combination of aerender.exe and scripts. I think that scripts on redifinery, for example, expect there to be a human waving a mouse around who then starts the script. I would to achieve this:
Video file -> Load video and do stuff to it in after effects -> Render
Do you know how to do that, or what I might be overlooking the scripting guide. I've read through everything in the guide but haven't necessarily grasp the implications of what it says.
I should clarify, the middle part where you do stuff in after effects should be accomplished by scripting, i.e. not:
1 Create a project
2. Create a composition
3. Create layers
4. Setup transformations,
5. Save.
and then process the prepared project. I want to automate steps 1-5.