Hi all, so I’m in the process of hacking the AE submission script. Right now I need to add 2 custom arguments to display in the Monitor. Those are Frame Size (1920x1080) and output File type (png, exr, ect). I’m far more familiar with Python, but I’ve been able to hack my way through javascript so far. But I’ve hit a wall here because I don’t know how to pull the info I need from the AE scene file. I already know how to pass along that info to the ExtraInfo arguments in Monitor. So all I need is just the code to pull info from AE.
It looks like the global variable ‘app’ has a ‘project’ object:
Here’s some stuff
filename = app.project.file
for( i = 1; i < app.project.renderQueue.numItems; ++i )
{
alert(app.project.renderQueue.item(i));
}
timeLength = app.project.renderQueue.item(0).comp.workAreaDuration;
After digging around, I have no idea how to grab the comp’s resolution. It may not even be possible as I found a listing of the properties under the ‘comp’ object and found nothing for resolution.
You can dig around though using this to print the properties of things:
var output = '';
for (var property in object) {
output += property + ': ' + object[property]+'; ';
}
alert(output);
Thanks Edwin! I kind of came to the same thing with the “app” variable. But listing the properties sounds like a good idea. Can I just say that I hate javascript?